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.
# 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
alias => ["puppet.$domain"],
}
} else {
- include puppetmasterd::disabled
+ class { 'puppetmasterd':
+ main => false,
+ }
host { "puppet":
ensure => absent,