Puppet Class: nagios_common::contactgroups
- Defined in:
- modules/nagios_common/manifests/contactgroups.pp
Overview
Class: nagios_common::contactgroups
Sets up appropriate contacts for notifications
- source
-
Allows to input a prewritten file as a source. Overrides “content” if defined, but “content” is used if this is undefined.
- ensure
-
present or absent, to make the definition present or absent. Defaults to present
- config_dir
-
The base directory to put configuration directory in. Defaults to '/etc/icinga/'
- owner
-
The user which should own the check config files. Defaults to 'icinga'
- group
-
The group which should own the check config files. Defaults to 'icinga'
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'modules/nagios_common/manifests/contactgroups.pp', line 25
class nagios_common::contactgroups(
$source,
$ensure = present,
$config_dir = '/etc/icinga',
$owner = 'icinga',
$group = 'icinga',
) {
file { "${config_dir}/contactgroups.cfg":
source => $source,
owner => $owner,
group => $group,
mode => '0644',
}
}
|