From b12016cac6d5445bd27c1d6abbdff88a4efc3d62 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 29 May 2010 15:09:43 -0300 Subject: Using puppetmasterd:disabled when not main master --- manifests/master.pp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'manifests') 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") } } -- cgit v1.2.3