diff options
Diffstat (limited to 'manifests/role/nas.pp')
-rw-r--r-- | manifests/role/nas.pp | 17 |
1 files changed, 17 insertions, 0 deletions
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, + }, + } } # |