From: Silvio Rhatto Date: Fri, 7 Jun 2013 20:14:16 +0000 (-0300) Subject: Configure munin plugins into nodo::role::nas X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0f1322ca8bb88d543e01624f98b3438d2038721e;p=puppet-nodo.git Configure munin plugins into nodo::role::nas --- diff --git a/manifests/role/nas.pp b/manifests/role/nas.pp index f834322..d0b48fe 100644 --- a/manifests/role/nas.pp +++ b/manifests/role/nas.pp @@ -1,6 +1,9 @@ class nodo::role::nas( $virtual = false, ) { + # Munin configuration + $munin = hiera('nodo::host::use_munin', True) + # Minimal utilities include nodo::utils::network::minimal @@ -65,6 +68,13 @@ class nodo::role::nas( class { 'nfs': server => true; } + + munin::plugin { [ 'nfsd4' ]: + ensure => $munin ? { + true => present, + default => absent, + }, + } } # @@ -166,6 +176,13 @@ class nodo::role::nas( default => undef, }, } + + munin::plugin { [ 'samba' ]: + ensure => $munin ? { + true => present, + default => absent, + }, + } } #