OP#436 add nagios hostgroups, and example groups and contacts
This commit is contained in:
@@ -25,7 +25,7 @@ class confdroid_nagios::nagios::objects::add_hostgroup_rules (
|
||||
selrole => object_r,
|
||||
seltype => nagios_etc_t,
|
||||
seluser => system_u,
|
||||
notify => Service[ng_nagios_service],
|
||||
notify => Service[$ng_nagios_service],
|
||||
}
|
||||
|
||||
# manage file header
|
||||
@@ -35,5 +35,12 @@ class confdroid_nagios::nagios::objects::add_hostgroup_rules (
|
||||
content => template($ng_tgt_hostgrp_head_erb),
|
||||
order => '000',
|
||||
}
|
||||
|
||||
# add hostgroup rules through defines and parameters
|
||||
confdroid_nagios::nagios::objects::add_hostgroups { $ng_hostgroup_name:
|
||||
ng_hostgroup_name => $ng_hostgroup_name,
|
||||
ng_hostgroup_alias => $ng_hostgroup_alias,
|
||||
ng_hostgroup_ensure => $ng_hostgroup_ensure,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user