summaryrefslogtreecommitdiff
path: root/manifests/target/fqdn.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/target/fqdn.pp')
-rw-r--r--manifests/target/fqdn.pp13
1 files changed, 9 insertions, 4 deletions
diff --git a/manifests/target/fqdn.pp b/manifests/target/fqdn.pp
index acac5d6..6bb16c1 100644
--- a/manifests/target/fqdn.pp
+++ b/manifests/target/fqdn.pp
@@ -1,5 +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
+ }
}