Skip to content

Commit

Permalink
Fixes/Enhancements:
Browse files Browse the repository at this point in the history
- Make the Debian installation behave more like RedHat by allowing package upgrades
  • Loading branch information
bdwyertech committed Dec 22, 2015
1 parent cd60dc6 commit 4c40ead
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ class Chef::Resource # rubocop:disable all
source deb_package
action :create_if_missing
end
dpkg_package "#{Chef::Config[:file_cache_path]}/#{node['rabbitmq']['deb_package']}" do
action :install
package 'rabbitmq-server' do
provider Chef::Provider::Package::Dpkg
source ::File.join(Chef::Config[:file_cache_path], node['rabbitmq']['deb_package'])
action :upgrade

This comment has been minimized.

Copy link
@iramello

iramello Apr 3, 2016

I don't see a reason why this block was changed. We are testing that we are using a Debian-like system, so using dpkg_package resource is the same as above (and specifying provider). Anyways, changing line 63 for :install instead of upgrade, solves issue #356. That's why it used to work.

This comment has been minimized.

Copy link
@pianoman19372

pianoman19372 Jun 8, 2016

there appears to be a slight change in the dpkg provider thats provided by chef-client v11 and chef-client v12

in my testing, this code works perfectly with chef-client v12, in chef-client v11 i receive an error

No candidate version available for rabbitmq-server

i see this as a bug in chef-client v11 and not a bug in this recipe

end
end

Expand Down

0 comments on commit 4c40ead

Please sign in to comment.