nagios: Added parent host support to nagios::target.
This commit is contained in:
parent
20078c82ea
commit
f9e719d33e
2 changed files with 11 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue