aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/master.pp16
1 files changed, 9 insertions, 7 deletions
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") }
}