aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-02-27 15:48:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-02-27 15:48:35 -0300
commitbe6914cef2766b700757845e468ad2415a92eb76 (patch)
treedf97434ebc61067975c4e6a56ad6d2c7d47fe786
parent4f9dcc00ac29bf05d24be2fc7b5afdaa7a8e56b8 (diff)
downloadpuppet-nodo-be6914cef2766b700757845e468ad2415a92eb76.tar.gz
puppet-nodo-be6914cef2766b700757845e468ad2415a92eb76.tar.bz2
Introducing $node_hosting_type
-rw-r--r--manifests/init.pp18
1 files changed, 13 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8301bba..e22edbb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -181,12 +181,20 @@ class nodo::vserver inherits nodo {
dohwinfo => false,
}
- # Apply munin configuration for this node
- Munin_node <<| title == $hostname |>>
+ $hosting_type = $node_hosting_type ? {
+ '' => "direct",
+ default => "$node_hosting_type",
+ }
+
+ if $hosting_type == "direct" {
+ # Apply munin configuration for this node for
+ # directly hosted nodes.
+ Munin_node <<| title == $hostname |>>
+ }
- # We include munin configuration in case the node wasn't defined
- # by nodo::vserver::instance.
- if !defined(munin::client) {
+ if $hosting_type == "third-party" {
+ # Apply munin configuration for this node for third-party
+ # hosted nodes.
munin_node { "$hostname": }
}