Skip to content

Instantly share code, notes, and snippets.

@cheeseplus
Created August 21, 2012 16:19
Show Gist options
  • Save cheeseplus/3416974 to your computer and use it in GitHub Desktop.
Save cheeseplus/3416974 to your computer and use it in GitHub Desktop.
if node[:riak][:package][:type].eql?("binary")
service "riak" do
supports :start => true, :stop => true, :restart => true
action [ :enable ]
subscribes :restart, resources(:file => [ "#{node[:riak][:package][:config_dir]}/app.config",
"#{node[:riak][:package][:config_dir]}/vm.args" ])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment