diff options
author | mh <mh@immerda.ch> | 2015-06-07 11:43:49 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2015-06-07 11:43:57 +0200 |
commit | 4d4119d3c7b47ed34b7e014b3a9f9ff0bddda76c (patch) | |
tree | 4333831a22a5b78445aff49c301a4ace08606d9e /manifests/target | |
parent | 60a2b8106a9403d786ca03a759035ad54d5976fc (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.pp | 8 |
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 } } |