diff options
Diffstat (limited to 'manifests/target.pp')
-rw-r--r-- | manifests/target.pp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/manifests/target.pp b/manifests/target.pp index a58912e..675ac1a 100644 --- a/manifests/target.pp +++ b/manifests/target.pp @@ -1,5 +1,15 @@ # manifests/target.pp class nagios::target { - include nagios::target::host + + @@nagios_host { "${fqdn}": + address => $ipaddress, + alias => $hostname, + use => 'generic-host', + } + + if ($nagios_parents != '') { + Nagios_host["${fqdn}"] { parents => $nagios_parents } + } + } |