From d7b246cf80f45d199827c5c3f0a24152a93f5690 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Feb 2010 16:55:57 -0200 Subject: Trying an alternative way to check if munin::client is defined --- manifests/init.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'manifests/init.pp') 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 -- cgit v1.2.3