]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Manage nagios on every master
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 19 Sep 2011 14:52:33 +0000 (11:52 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 19 Sep 2011 14:52:33 +0000 (11:52 -0300)
manifests/master.pp

index 82801f4c187561d94a68650e904866fc2ebefc5a..59f267805c7018bb5a215e2b77b1ca0bf44c156a 100644 (file)
@@ -20,13 +20,6 @@ class nodo::master {
 
     include munin::host
     include munin::plugins::muninhost
-    include nagios::headless
-    include nagios::defaults
-
-    # Nagios apache workaround
-    file { "/etc/apache2/conf.d/nagios3.conf":
-      ensure => absent,
-    }
 
     # The main master has a host entry pointing to itself, other
     # masters still retrieve catalogs from the main master.
@@ -48,6 +41,14 @@ class nodo::master {
   include database
   include gitosis
   include websites::admin
+  include nagios::headless
+  include nagios::defaults
+
+  # Nagios apache workaround
+  file { "/etc/apache2/conf.d/nagios3.conf":
+    ensure => absent,
+  }
+
 
   case $puppetmaster_db_password {
     '': { fail("Please set \$puppetmaster_db_password in your host config") }