Skip to content

Instantly share code, notes, and snippets.

@jsierles
Created February 3, 2009 20:45
Show Gist options
  • Save jsierles/57739 to your computer and use it in GitHub Desktop.
Save jsierles/57739 to your computer and use it in GitHub Desktop.
package "nagios" do
package_name 'nagios3'
action :install
end
hosts = []
search(:node, "*") {|node| hosts << node }
service "nagios3" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :start ]
end
nagios_conf "nagios"
nagios_conf "commands"
nagios_conf "hosts" do
variables ({:hosts => hosts})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment