]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Configure munin plugins into nodo::role::nas
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Jun 2013 20:14:16 +0000 (17:14 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Jun 2013 20:14:16 +0000 (17:14 -0300)
manifests/role/nas.pp

index f8343221f8a8a66a64f8dee5102f565bacf27767..d0b48fee3fbc566e562aec609311ecf3e4a40afc 100644 (file)
@@ -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,
+      },
+    }
   }
 
   #