From: Silvio Rhatto Date: Mon, 28 Jan 2013 19:46:02 +0000 (-0200) Subject: Introducing nodo::host::use_munin X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=021ea7edd7a14a94b8d45dd382ba59af4f310505;p=puppet-nodo.git Introducing nodo::host::use_munin --- diff --git a/manifests/host.pp b/manifests/host.pp index 88e9005..a38ed53 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -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', + } } } diff --git a/manifests/physical.pp b/manifests/physical.pp index 97e47a8..5f9ffb6 100644 --- a/manifests/physical.pp +++ b/manifests/physical.pp @@ -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