From: Silvio Rhatto Date: Sun, 20 Jan 2013 19:19:58 +0000 (-0200) Subject: Using use_fqdn as parameter at monitor class X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=18ab043e90de8889fe06944e3208bb4697f93e32;p=puppet-nodo.git Using use_fqdn as parameter at monitor class --- diff --git a/manifests/subsystems/monitor.pp b/manifests/subsystems/monitor.pp index 26ba019..6d3b5aa 100644 --- a/manifests/subsystems/monitor.pp +++ b/manifests/subsystems/monitor.pp @@ -1,6 +1,7 @@ class monitor( $type = 'vserver', $use_nagios = true, + $use_fqdn = extlookup('use_nagios_fqdn', false) ) { if $use_nagios != false { @@ -11,7 +12,6 @@ class monitor( } if $type == 'host' or $type == 'personal' { - $use_fqdn = extlookup('use_nagios_fqdn', false) if $use_fqdn == true { include nagios::target::fqdn }