-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make the Debian installation behave more like RedHat by allowing package upgrades
- Loading branch information
1 parent
cd60dc6
commit 4c40ead
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
pianoman19372
|
||
end | ||
end | ||
|
||
|
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.