Defined Type: confdroid_nagios::nagios::objects::add_hostgroups
- Defined in:
- manifests/nagios/objects/add_hostgroups.pp
Summary
define populates /etc/nagios/conf.d/nagios_hostgroups_add through external Puppet rules.Overview
confdroid_nagios::nagios::objects::add_hostgroups.pp Module name: confdroid_nagios Author: 12ww1160 (12ww1160@confdroid.com)
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'manifests/nagios/objects/add_hostgroups.pp', line 15
define confdroid_nagios::nagios::objects::add_hostgroups (
Optional[String] $ng_hostgroup_name = undef,
Optional[String] $ng_hostgroup_alias = undef,
String $ng_hostgroup_register = '1',
) {
$ng_nagios_server = $confdroid_nagios::params::ng_nagios_server
$ng_tgt_hostgroup_add = $confdroid_nagios::params::ng_tgt_hostgroup_add
$ng_tgt_hostgrp_rule_erb = $confdroid_nagios::params::ng_tgt_hostgrp_rule_erb
$fqdn = $confdroid_nagios::params::fqdn
if $ng_nagios_server == $fqdn {
concat::fragment { $name:
target => $ng_tgt_hostgroup_add,
content => template($ng_tgt_hostgrp_rule_erb),
}
}
}
|