aboutsummaryrefslogtreecommitdiff
path: root/manifests/master.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-24 19:58:26 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-24 19:58:26 -0200
commit5b014151a2ad63c1265fb95180505ab14f6090d9 (patch)
tree063c91ce6af115d2e20cae1745b0cccd372d48de /manifests/master.pp
parent19d2a0a39eff1a836c309ad9a82dec734b9ddb0e (diff)
downloadpuppet-nodo-5b014151a2ad63c1265fb95180505ab14f6090d9.tar.gz
puppet-nodo-5b014151a2ad63c1265fb95180505ab14f6090d9.tar.bz2
Updating to new puppet module scheme
Diffstat (limited to 'manifests/master.pp')
-rw-r--r--manifests/master.pp14
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/master.pp b/manifests/master.pp
index e355e8e..4c384b6 100644
--- a/manifests/master.pp
+++ b/manifests/master.pp
@@ -1,11 +1,11 @@
class nodo::master {
- case $main_master {
- '': { fail("You need to define if this is the main master! Please set \$main_master in host config") }
- }
+ $main_master = hiera('nodo::master::main', false)
if $main_master == true {
# Puppetmaster should be included before nodo::vserver
- include puppetmasterd
+ class { 'puppetmasterd':
+ main => true,
+ }
# This is a workaround to correctly set allowed hosts on munin
# client when the host is also present.
@@ -16,7 +16,7 @@ class nodo::master {
# Right now we don't need to bother with fixing $munin_port as
# we are running the munin host in the main master node but it's
# mandatory to fix $munin_allow so munin can connect into the node.
- $munin_allow = $global_munin_allow
+ $munin_allow = hiera('nodo::munin_node::host', '')
include munin::host
include munin::plugins::muninhost
@@ -29,7 +29,9 @@ class nodo::master {
alias => ["puppet.$domain"],
}
} else {
- include puppetmasterd::disabled
+ class { 'puppetmasterd':
+ main => false,
+ }
host { "puppet":
ensure => absent,