Skip to content

Commit

Permalink
Merge pull request #234 from kramvan1/pin_distro_version
Browse files Browse the repository at this point in the history
Added pin_distro_version for other platforms
  • Loading branch information
JJ Asghar committed Mar 3, 2015
2 parents 7dc4783 + 96f87cf commit 51255ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Chef::Resource # rubocop:disable all
if node['rabbitmq']['use_distro_version']
package 'rabbitmq-server' do
action :install
version node['rabbitmq']['version']
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
end
else
# We need to download the rpm
Expand All @@ -122,13 +122,13 @@ class Chef::Resource # rubocop:disable all
end
package 'rabbitmq-server' do
action :install
version node['rabbitmq']['version']
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
end

when 'smartos'
package 'rabbitmq'do
action :install
version node['rabbitmq']['version']
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
end

service 'epmd' do
Expand Down

0 comments on commit 51255ef

Please sign in to comment.