1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'manifests/contacts.pp', line 1
class nagios::contacts (
$package_name = $::nagios::params::package_name,
$configfile_contacts = $::nagios::params::configfile_contacts,
$template_contacts = 'nagios/contacts.erb',
$contact_name = undef,
$use = undef,
$alias = undef,
$email = undef,
$service_notification_period = undef,
$host_notification_period = undef,
$service_notification_options = undef,
$host_notification_options = undef,
$service_notification_commands = undef,
$host_notification_commands = undef,
$contactgroup_name = undef,
$contactgroup_alias = undef,
$members = undef,
) inherits nagios::params {
file { $configfile_contacts:
require => package[$package_name],
backup => '.backup',
content => template($template_contacts),
}
}
|