Skip to content

Instantly share code, notes, and snippets.

@webframp
Created May 8, 2012 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webframp/2631753 to your computer and use it in GitHub Desktop.
Save webframp/2631753 to your computer and use it in GitHub Desktop.
template "#{node['apache']['dir']}/sites-available/nagios3.conf" do
source "apache2.conf.erb"
mode 0644
variables :public_domain => public_domain
if ::File.symlink?("#{node['apache']['dir']}/sites-enabled/nagios3.conf")
notifies :reload, "service[apache2]"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment