Skip to content

Instantly share code, notes, and snippets.

@tfhartmann
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save tfhartmann/4324415e303cba99c848 to your computer and use it in GitHub Desktop.

Select an option

Save tfhartmann/4324415e303cba99c848 to your computer and use it in GitHub Desktop.
Nagios Puppet
resources { 'nagios_service': purge => true }
file {
'/etc/nagios/nagios_command.cfg' : ensure => present;
'/etc/nagios/nagios_contact.cfg' : ensure => present;
'/etc/nagios/nagios_contactgroup.cfg' : ensure => present;
'/etc/nagios/nagios_host.cfg' : ensure => present;
'/etc/nagios/nagios_hostgroup.cfg' : ensure => present;
'/etc/nagios/nagios_servicegroup.cfg' : ensure => present;
'/etc/nagios/nagios_service.cfg' : ensure => present;
'/etc/nagios/nagios_servicedependency.cfg': ensure => present;
}
----------------------------
Different code base, but also uses resources
resources { 'nagios_host':
purge => true,
}
resources { 'nagios_service':
purge => true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment