summaryrefslogtreecommitdiff
path: root/manifests/target
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-02 15:31:08 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-02 15:31:08 -0500
commit0bcac1357115fe9b03ec884632d46c93efb317d9 (patch)
treec87474ff831938e7f191d40f665184cfef912e12 /manifests/target
parent3c15393af5c8fb0c7d66ece27a70b86709f1af82 (diff)
remove host wrapper, instead define using native type in target, and create a target::nat subclass
Diffstat (limited to 'manifests/target')
-rw-r--r--manifests/target/host.pp6
-rw-r--r--manifests/target/nat.pp5
2 files changed, 5 insertions, 6 deletions
diff --git a/manifests/target/host.pp b/manifests/target/host.pp
deleted file mode 100644
index 8ba4e77..0000000
--- a/manifests/target/host.pp
+++ /dev/null
@@ -1,6 +0,0 @@
-# manifests/target/host.pp
-
-class nagios::target::host {
- nagios::host { $fqdn: parents => $nagios_parent }
-}
-
diff --git a/manifests/target/nat.pp b/manifests/target/nat.pp
new file mode 100644
index 0000000..abb0a1e
--- /dev/null
+++ b/manifests/target/nat.pp
@@ -0,0 +1,5 @@
+class nagios::target::nat inherits nagios::target {
+
+ Nagios_host["${fqdn}"] { address => "${fqdn}" }
+
+}