aboutsummaryrefslogtreecommitdiff
path: root/manifests/role
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-07 17:14:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-07 17:14:16 -0300
commit0f1322ca8bb88d543e01624f98b3438d2038721e (patch)
tree46fc8ef2949d28618066e19253de06da23d9395b /manifests/role
parent8bd2bc0082954b059866f697d2b211f85c5adb7c (diff)
downloadpuppet-nodo-0f1322ca8bb88d543e01624f98b3438d2038721e.tar.gz
puppet-nodo-0f1322ca8bb88d543e01624f98b3438d2038721e.tar.bz2
Configure munin plugins into nodo::role::nas
Diffstat (limited to 'manifests/role')
-rw-r--r--manifests/role/nas.pp17
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,
+ },
+ }
}
#