Skip to content

Instantly share code, notes, and snippets.

@stevendanna
Created September 8, 2012 03:37
Show Gist options
  • Save stevendanna/3671608 to your computer and use it in GitHub Desktop.
Save stevendanna/3671608 to your computer and use it in GitHub Desktop.
runit_action = env["runit_enable"]["couchdb"] ? :enable : :disable
runit_service "couchdb" do
action runit_action
end
template "#{couch_etc}/local.ini" do
source "local.ini.erb"
group "root"
owner "root"
variables(:couchdb_listen_port => node[:couchdb][:listen_port],
:couchdb_listen_ip => node[:couchdb][:listen_ip],
:couch_ver => couch_ver)
mode 0644
notifies :restart, resources(:service => "couchdb")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment