Skip to content

Instantly share code, notes, and snippets.

@cheeseplus
Created June 25, 2012 19:02
Show Gist options
  • Save cheeseplus/2990545 to your computer and use it in GitHub Desktop.
Save cheeseplus/2990545 to your computer and use it in GitHub Desktop.
when "binary"
package package_name do
source "/tmp/riak_pkg/#{package_file}"
action :install
options = case node[:platform]
when "debian","ubuntu"
"--forceconfnew"
end
provider value_for_platform(
[ "ubuntu", "debian" ] => {"default" => Chef::Provider::Package::Dpkg},
[ "redhat", "centos", "fedora", "suse" ] => {"default" => Chef::Provider::Package::Rpm}
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment