]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Using use_fqdn as parameter at monitor class
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 20 Jan 2013 19:19:58 +0000 (17:19 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 20 Jan 2013 19:19:58 +0000 (17:19 -0200)
manifests/subsystems/monitor.pp

index 26ba019755ff6f3056385df694aae0c452b92533..6d3b5aab407043779208fa61a2289b935b548b74 100644 (file)
@@ -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
       }