summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-25 17:21:28 +0100
committervarac <varacanero@zeromail.org>2013-01-25 17:21:28 +0100
commit33a3bc4b1678641301388cb80cb4071f94a50150 (patch)
tree140ec5d6b881630269d3e4be381d4586e3519ad9
parent8b3c464eeb29f21c4f8119fc3a4ac7b7140878aa (diff)
linted target.pp, added notes
-rw-r--r--manifests/target.pp14
1 files changed, 9 insertions, 5 deletions
diff --git a/manifests/target.pp b/manifests/target.pp
index f9b7e13..aaa67cf 100644
--- a/manifests/target.pp
+++ b/manifests/target.pp
@@ -4,19 +4,23 @@ class nagios::target(
$parents = 'absent',
$address = $::ipaddress,
$nagios_alias = $::hostname,
- $hostgroups = 'absent'
+ $hostgroups = 'absent',
+ $notes = 'absent'
){
@@nagios_host { $::fqdn:
address => $address,
- alias => $nagios_alias,
- use => 'generic-host',
+ alias => $nagios_alias,
+ use => 'generic-host',
}
if ($parents != 'absent') {
- Nagios_host["${::fqdn}"] { parents => $parents }
+ Nagios_host[ $::fqdn ] { parents => $parents }
}
if ($hostgroups != 'absent') {
- Nagios_host["${::fqdn}"] { hostgroups => $hostgroups }
+ Nagios_host[ $::fqdn ] { hostgroups => $hostgroups }
+ }
+ if ($notes != 'absent') {
+ Nagios_host[ $::fqdn ] { notes => $notes }
}
}