From 0f1322ca8bb88d543e01624f98b3438d2038721e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 7 Jun 2013 17:14:16 -0300 Subject: Configure munin plugins into nodo::role::nas --- manifests/role/nas.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'manifests/role/nas.pp') 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, + }, + } } # -- cgit v1.2.3