Skip to content

Commit

Permalink
Provider for RHEL and Fedora had to be altered to RPM.
Browse files Browse the repository at this point in the history
Also, adjusted platform conditionals so that they use platform_family
instead.
  • Loading branch information
hectcastro committed Jul 29, 2013
1 parent d293e21 commit d738d2c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions recipes/enterprise_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,9 @@
package package_name do
source "#{Chef::Config[:file_cache_path]}/#{package_file}"
action :install
case node['platform'] when "ubuntu","debian"
options "--force-confdef --force-confold"
end
provider value_for_platform(
[ "ubuntu", "debian" ] => {"default" => Chef::Provider::Package::Dpkg},
[ "redhat", "centos", "fedora" ] => {"default" => Chef::Provider::Package::Yum}
options "--force-confdef --force-confold" if node['platform_family'] == "debian"
provider value_for_platform_family(
[ "debian" ] => Chef::Provider::Package::Dpkg,
[ "rhel", "fedora" ] => Chef::Provider::Package::Rpm
)
end

0 comments on commit d738d2c

Please sign in to comment.