diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-02 15:31:08 -0500 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-02 15:31:08 -0500 |
commit | 0bcac1357115fe9b03ec884632d46c93efb317d9 (patch) | |
tree | c87474ff831938e7f191d40f665184cfef912e12 /manifests/target.pp | |
parent | 3c15393af5c8fb0c7d66ece27a70b86709f1af82 (diff) |
remove host wrapper, instead define using native type in target, and create a target::nat subclass
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 } + } + } |