Skip to content

Instantly share code, notes, and snippets.

@webframp
Created May 8, 2012 00:52
Show Gist options
  • Select an option

  • Save webframp/2631753 to your computer and use it in GitHub Desktop.

Select an option

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