]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Introducing nodo::host::use_munin
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 28 Jan 2013 19:46:02 +0000 (17:46 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 28 Jan 2013 19:46:02 +0000 (17:46 -0200)
manifests/host.pp
manifests/physical.pp

index 88e900542b68ae9ca513ecf7d6fd740c91c7b808..a38ed5338ecb2b37c939560caf378a62aeb09e95 100644 (file)
@@ -38,8 +38,11 @@ class nodo::host inherits nodo {
   }
 
   # Munin configuration
-  munin_node { "$hostname":
-    port => '4900',
+  $munin = hiera('nodo::host::use_munin', True)
+  if $munin == true {
+    munin_node { "$hostname":
+      port => '4900',
+    }
   }
 
 }
index 97e47a81bac5aa01b1c9fa34b8ba34f6731dfdb4..5f9ffb658d7a2bf87cea6e2d529dc3778898bdfa 100644 (file)
@@ -3,10 +3,13 @@ class nodo::physical inherits nodo::host {
   include smartmontools
 
   # SMART monitoring
-  include munin::plugins::smart
-  munin::plugin { "smart_sda":
-    ensure => "smart_",
-    config => "user root\ngroup disk",
+  $munin = hiera('nodo::host::use_munin', True)
+  if $munin == true {
+    include munin::plugins::smart
+    munin::plugin { 'smart_sda':
+      ensure => 'smart_',
+      config => "user root\ngroup disk",
+    }
   }
 
   # Removable media folder