-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for rhel based pkgs #418
Conversation
- fixes for rhel based pkgs Signed-off-by: JJ Asghar <jj@chef.io>
attributes/default.rb
Outdated
when > '6' | ||
default['rabbitmq']['rpm_package'] = "rabbitmq-server-#{node['rabbitmq']['version']}-1.el6..noarch.rpm" | ||
when < '6' | ||
default['rabbitmq']['rpm_package'] = "rabbitmq-server-#{node['rabbitmq']['version']}-1.el7.noarch.rpm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a typo? For versions < 6 this uses the CentOS 7 package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opps. thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we should cover the case where version equals 6? ;)
attributes/default.rb
Outdated
default['rabbitmq']['rpm_package'] = "rabbitmq-server-#{node['rabbitmq']['version']}-1.el7.noarch.rpm" | ||
end | ||
when 'suse' | ||
default['rabbitmq']['rpm_package'] = "rabbitmq-server-#{node['rabbitmq']['version']}-1.suse..noarch.rpm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an extra dot before the noarch
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@jjasghar thank you! I see a couple of suspicious things (likely typos) in this PR. |
Typos Signed-off-by: JJ Asghar <jj@chef.io>
attributes/default.rb
Outdated
case node['platform_family'] | ||
when 'rhel', 'fedora' | ||
case node['platform_version'] | ||
when < '6' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be <=
as currently version 6
will match the other branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, makes sense.
missed = Signed-off-by: JJ Asghar <jj@chef.io>
Signed-off-by: JJ Asghar jj@chef.io