OP#436 add nagios hostgroups, and example groups and contacts

This commit is contained in:
2026-03-01 16:04:02 +01:00
parent 741bc76fb6
commit e0a3ad9624
2 changed files with 19 additions and 1 deletions

View File

@@ -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,
}
}
}