Skip to content

Instantly share code, notes, and snippets.

@dodizzle
Created December 8, 2011 00:11
Show Gist options
  • Select an option

  • Save dodizzle/1445438 to your computer and use it in GitHub Desktop.

Select an option

Save dodizzle/1445438 to your computer and use it in GitHub Desktop.
service "riak"
execute "install_riak" do
command "/usr/bin/dpkg -i /srv/posterous/tmp/riak_1.0.2-1_amd64.deb"
action :nothing
user "root"
end
cookbook_file "/srv/posterous/tmp/riak_1.0.2-1_amd64.deb" do
source "riak_1.0.2-1_amd64.deb"
mode "0644"
notifies :run, resources(:execute => "install_riak") , :immediately
end
directory "/srv/posterous/riak" do
owner "riak"
group "riak"
mode "0755"
action :create
end
cookbook_file "/etc/riak/app.config" do
source "app.config-#{node[:fqdn]}"
mode "0644"
owner "root"
notifies :restart, "service[riak]", :immediately
end
cookbook_file "/etc/riak/vm.args" do
source "vm.args-#{node[:fqdn]}"
mode "0644"
owner "root"
notifies :restart, "service[riak]", :immediately
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment