]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Rollback the last change and including puppetmasterd::disabled when needed
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Sep 2010 19:33:35 +0000 (16:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Sep 2010 19:33:35 +0000 (16:33 -0300)
manifests/master.pp

index 1db4299cd14e698c2c777e878ca051eb12a5de96..12f380c75fd507f7b02dd56e6a847959ea95f2c6 100644 (file)
@@ -3,10 +3,11 @@ class nodo::master {
     '': { fail("You need to define if this is the main master! Please set \$main_master in host config") }
   }
 
-  # Puppetmaster should be included before nodo::vserver
-  include puppetmasterd
-
   if $main_master == true {
+    # Puppetmaster should be included before nodo::vserver
+    include puppetmasterd
+
+    include munin::host
     include nagios::headless
     include nagios::defaults
 
@@ -23,6 +24,8 @@ class nodo::master {
       alias  => ["puppet.$domain"],
     }
   } else {
+    include puppetmasterd::disabled
+
     host { "puppet":
       ensure => absent,
     }
@@ -34,11 +37,6 @@ class nodo::master {
   include gitosis
   include websites::admin
 
-  # Munin configuration
-  if $main_master == true {
-    include munin::host
-  }
-
   case $puppetmaster_db_password {
     '': { fail("Please set \$puppetmaster_db_password in your host config") }
   }