]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Trying an alternative way to check if munin::client is defined
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Feb 2010 18:55:57 +0000 (16:55 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Feb 2010 18:55:57 +0000 (16:55 -0200)
manifests/init.pp

index 11667ff3b090e3142e122589629b668c49491f9c..ca31f2b74efaccdf1d13f3b3f8a025570d171420 100644 (file)
@@ -181,13 +181,13 @@ class nodo::vserver inherits nodo {
     dohwinfo   => false,
   }
 
+  # Apply munin configuration for this node
+  Munin_node <<| tag == $hostname |>>
+
   # We include munin configuration if it's not defined by
   # and exported resource.
-  if !defined(Munin_node[$hostname]) {
+  if !(defined(munin::client) {
     include munin::client
-  } else {
-    # Apply munin configuration for this node
-    Munin_node <<| tag == $hostname |>>
   }
 
   # Define a vserver instance