]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Implementing nagios on nodo::base::plug
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Jun 2013 00:33:06 +0000 (21:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Jun 2013 00:33:06 +0000 (21:33 -0300)
manifests/base/plug.pp

index 9ef4a08ba42d24df5df0f904b4fbb7cdfd80bfbf..6add09c1b191db626688a36b81a57c7128c1f5b3 100644 (file)
@@ -9,10 +9,18 @@ class nodo::base::plug {
 
   class { [ 'ntpdate', 'firewall' ]: }
 
+  # Backup
   backupninja::sys { "sys":
     ensure     => present,
   }
 
+  # Monitoring
+  if !defined(Class['nodo::subsystem::monitor']) {
+    class { 'nodo::subsystem::monitor':
+      type => 'host',
+    }
+  }
+
   # Munin configuration
   munin_node { "${::hostname}":
     port => '4900',