From: Silvio Rhatto Date: Thu, 18 Feb 2010 18:55:57 +0000 (-0200) Subject: Trying an alternative way to check if munin::client is defined X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d7b246cf80f45d199827c5c3f0a24152a93f5690;p=puppet-nodo.git Trying an alternative way to check if munin::client is defined --- diff --git a/manifests/init.pp b/manifests/init.pp index 11667ff..ca31f2b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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