nagios: Added parent host support to nagios::target.

This commit is contained in:
Timo Mkinen 2013-05-06 23:40:53 +03:00
parent 20078c82ea
commit f9e719d33e
2 changed files with 11 additions and 2 deletions

View file

@ -1,11 +1,16 @@
# Configure nagios target.
#
# === Parameters
#
# $parent:
# Parent hostname.
#
# === Global variables
#
# $nagios_target_group:
# Host and service group name. Defaults to $domain.
#
class nagios::target {
class nagios::target($parent=undef) {
if $nagios_target_group {
$group = $nagios_target_group
@ -24,6 +29,7 @@ class nagios::target {
"" => "NONE",
default => inline_template("<%= osfamily.downcase %>")
},
parent => $parent,
}
Nagios::Service {