Skip to content

Instantly share code, notes, and snippets.

@johnfitzpatrick
Last active September 17, 2015 21:30
Show Gist options
  • Save johnfitzpatrick/b71ff9281f9e8f196345 to your computer and use it in GitHub Desktop.
Save johnfitzpatrick/b71ff9281f9e8f196345 to your computer and use it in GitHub Desktop.
package "haproxy"
action :install
end
template "/etc/haproxy/haproxy.conf" do
source "haproxy.conf.erb"
owner "root"
group "root"
mode "0644"
variables :pool_members => pool_members
notifies :reload, "service[haproxy]"
end
service "haproxy" do
action [:enable,:start]
supports :reload => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment