summaryrefslogtreecommitdiff
path: root/manifests/target
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-08 13:04:33 -0300
committermh <mh@immerda.ch>2012-06-08 13:04:33 -0300
commit106515b61b731489cce2d8b74bea13b26d4a65f6 (patch)
treec2e221f0652a5ab87428a540e2556439c5d4a999 /manifests/target
parent315a1942cacc58aecfe275599e54fa9da8252518 (diff)
refactor things for >2.7
Diffstat (limited to 'manifests/target')
-rw-r--r--manifests/target/fqdn.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/manifests/target/fqdn.pp b/manifests/target/fqdn.pp
index 2521533..6bb16c1 100644
--- a/manifests/target/fqdn.pp
+++ b/manifests/target/fqdn.pp
@@ -1,3 +1,10 @@
-class nagios::target::fqdn inherits nagios::target {
- Nagios_host[$::fqdn] { address => $::fqdn }
+class nagios::target::fqdn(
+ $hostgroups = 'absent',
+ $parents = 'absent'
+) {
+ class{'nagios::target':
+ address => $::fqdn,
+ hostgroups => $hostgroups,
+ parents => $parents
+ }
}