added and linked add_contactgroups_rules

This commit is contained in:
Arne Teuke
2017-07-27 11:39:45 +01:00
parent 5108aab0dc
commit 26ef9aac81
6 changed files with 92 additions and 4 deletions

View File

@@ -23,15 +23,21 @@
################################################################################
define cd_nagios::nagios::objects::add_contactgroups (
$ng_contactgroup_name = undef,
$ng_contactgroup_alias = undef,
$ng_contactgroup_register = '1',
) {
$ng_nagios_server == $::cd_nagios::params::ng_nagios_server
$ng_nagios_server = $::cd_nagios::params::ng_nagios_server
$ng_tgt_contactgroup_add = $::cd_nagios::params::ng_tgt_contactgroup_add
if $::fqdn == $ng_nagios_server {
concat::fragment { $name:
target => $ng_tgt_contactgroup_add,
content => template($ng_contacts_rule_erb),
}
}
}