Skip to content

Instantly share code, notes, and snippets.

@amdprophet
Created March 18, 2014 23:25
Show Gist options
  • Save amdprophet/508981de036090d3100f to your computer and use it in GitHub Desktop.
Save amdprophet/508981de036090d3100f to your computer and use it in GitHub Desktop.
include_recipe 'chef-solo-search' if Chef::Config.solo
include_recipe 'haproxy'
config_path = "#{node['haproxy']['conf_dir']}/haproxy.cfg"
haproxy_lb 'some_service' do
type 'listen'
mode 'tcp'
notifies :create, "template[#{config_path}]", :delayed # template won't get rewritten without this
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment