aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-02-18 16:55:57 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-02-18 16:55:57 -0200
commitd7b246cf80f45d199827c5c3f0a24152a93f5690 (patch)
treecf556a4c39f44caba0c119389214f8e2aabb0078 /manifests
parentc08cfbb0d4a5ce55fe528eb47e7a158e63a498b0 (diff)
downloadpuppet-nodo-d7b246cf80f45d199827c5c3f0a24152a93f5690.tar.gz
puppet-nodo-d7b246cf80f45d199827c5c3f0a24152a93f5690.tar.bz2
Trying an alternative way to check if munin::client is defined
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp8
1 files changed, 4 insertions, 4 deletions
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