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