Skip to content

Instantly share code, notes, and snippets.

@tfhartmann tfhartmann/nagios_stub.pp
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.