fuel-library/deployment/puppet/nagios/manifests/contact.pp
2013-03-04 02:21:05 +04:00

30 lines
757 B
Puppet

class nagios::contact(
$contacts = $nagios::master::contacts,
$contactgroups = $nagios::master::contactgroups,
) inherits nagios::master {
nagios::contact::contacts { $contacts[user]:
alias => $contacts[alias],
email => $contacts[email],
group => $contacts[group],
notify => Exec['fix-permissions'],
require => File['conf.d'],
}
nagios::contact::contactgroups { $contactgroups[group]:
alias => $contactgroups[alias],
notify => Exec['fix-permissions'],
require => File['conf.d'],
}
# Nagios_contact <||> {
# notify => Exec['fix-permissions'],
# require => File['conf.d'],
# }
#
# Nagios_contactgroup <||> {
# notify => Exec['fix-permissions'],
# require => File['conf.d'],
# }
}