Skip to content

Instantly share code, notes, and snippets.

@cheeseplus
Created June 25, 2012 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheeseplus/2991964 to your computer and use it in GitHub Desktop.
Save cheeseplus/2991964 to your computer and use it in GitHub Desktop.
case node[:riak][:package][:type]
when "binary"
package package_name do
source "/tmp/riak_pkg/#{package_file}"
action :install
options = case node[:platform]
when "debian","ubuntu"
"--force-confnew"
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