diff options
Diffstat (limited to 'manifests/target.pp')
-rw-r--r-- | manifests/target.pp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/manifests/target.pp b/manifests/target.pp index be6c40e..40ff18a 100644 --- a/manifests/target.pp +++ b/manifests/target.pp @@ -3,8 +3,9 @@ class nagios::target( $parents = 'absent', $address = $::ipaddress, - $nagios_alias = false, - $hostgroups = 'absent' + $nagios_alias = $::false, + $hostgroups = 'absent', + $notes = 'absent' ){ @@nagios_host { $::fqdn: address => $address, @@ -19,10 +20,13 @@ class nagios::target( } 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 } } } |