From 33a3bc4b1678641301388cb80cb4071f94a50150 Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 25 Jan 2013 17:21:28 +0100 Subject: linted target.pp, added notes --- manifests/target.pp | 14 +++++++++----- 1 file 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 } } } -- cgit v1.2.3