summaryrefslogtreecommitdiff
path: root/manifests/target
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2015-06-07 11:43:49 +0200
committermh <mh@immerda.ch>2015-06-07 11:43:57 +0200
commit4d4119d3c7b47ed34b7e014b3a9f9ff0bddda76c (patch)
tree4333831a22a5b78445aff49c301a4ace08606d9e /manifests/target
parent60a2b8106a9403d786ca03a759035ad54d5976fc (diff)
cleanup things a bit and make it possible to set a different fqdn
Diffstat (limited to 'manifests/target')
-rw-r--r--manifests/target/fqdn.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/target/fqdn.pp b/manifests/target/fqdn.pp
index 6bb16c1..31fc4b7 100644
--- a/manifests/target/fqdn.pp
+++ b/manifests/target/fqdn.pp
@@ -1,10 +1,12 @@
+# monitor a host by fqdn
class nagios::target::fqdn(
+ $address = $::fqdn,
$hostgroups = 'absent',
- $parents = 'absent'
+ $parents = 'absent'
) {
class{'nagios::target':
- address => $::fqdn,
+ address => $address,
hostgroups => $hostgroups,
- parents => $parents
+ parents => $parents
}
}