From: Silvio Rhatto Date: Sat, 29 May 2010 18:09:43 +0000 (-0300) Subject: Using puppetmasterd:disabled when not main master X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b12016cac6d5445bd27c1d6abbdff88a4efc3d62;p=puppet-nodo.git Using puppetmasterd:disabled when not main master --- diff --git a/manifests/master.pp b/manifests/master.pp index b07866e..e6d7722 100644 --- a/manifests/master.pp +++ b/manifests/master.pp @@ -1,16 +1,11 @@ class nodo::master { - # Puppetmaster should be included before nodo::vserver - include puppetmasterd - include nodo::vserver - include database - include gitosis - include websites::admin - case $main_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 if $main_master == true { + include puppetmasterd include munin::host # The main master has a host entry pointing to itself, other @@ -21,11 +16,18 @@ class nodo::master { alias => ["puppet.$domain"], } } else { + include puppetmasterd::disabled host { "puppet": ensure => absent, } } + # These should be included after puppetmaster + include nodo::vserver + include database + include gitosis + include websites::admin + case $puppetmaster_db_password { '': { fail("Please set \$puppetmaster_db_password in your host config") } }