Skip to content

Instantly share code, notes, and snippets.

@miah
Created May 7, 2012 18:01
Show Gist options
  • Select an option

  • Save miah/2629339 to your computer and use it in GitHub Desktop.

Select an option

Save miah/2629339 to your computer and use it in GitHub Desktop.
execute "haproxy_check_config" do
command "#{haproxy_bin} -c -f /etc/haproxy/haproxy.cfg"
notifies :restart, "service[haproxy]"
action :nothing
end
template "/etc/haproxy/haproxy.cfg" do
.. trimmed
notifies :run, "execute[haproxy_check_config]"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment