aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-03 21:33:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-03 21:33:06 -0300
commit79a8c80c0a85b90cf88d1ea134a5519bd9da788d (patch)
tree91bf3096fdccb0ee034708b6a7d856a5bc5e8d31
parent051c4c67ca153f7f936ba9d761846390f580d7b7 (diff)
downloadpuppet-nodo-79a8c80c0a85b90cf88d1ea134a5519bd9da788d.tar.gz
puppet-nodo-79a8c80c0a85b90cf88d1ea134a5519bd9da788d.tar.bz2
Implementing nagios on nodo::base::plug
-rw-r--r--manifests/base/plug.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/base/plug.pp b/manifests/base/plug.pp
index 9ef4a08..6add09c 100644
--- a/manifests/base/plug.pp
+++ b/manifests/base/plug.pp
@@ -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',