From fe1c86b8f938283e9dd8196a8b11a9648f4b49e6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 12 Apr 2013 17:09:03 -0300 Subject: Major refactor --- manifests/master.pp | 60 ----------------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 manifests/master.pp (limited to 'manifests/master.pp') diff --git a/manifests/master.pp b/manifests/master.pp deleted file mode 100644 index 819ce43..0000000 --- a/manifests/master.pp +++ /dev/null @@ -1,60 +0,0 @@ -class nodo::master { - $main = hiera('nodo::master::main', false) - $db_password = hiera('nodo::master::db_password', '') - - case $db_password { - '': { fail("Please set nodo::master::db_password in your config") } - } - - if $main == true { - # Puppetmaster should be included before nodo::vserver - class { 'puppet::master': - main => true, - } - - include munin::host - include munin::plugins::muninhost - - # The main master has a host entry pointing to itself, other - # masters still retrieve catalogs from the main master. - host { "puppet": - ensure => present, - ip => "127.0.0.1", - alias => ["puppet.${::domain}"], - } - } else { - class { 'puppet::master': - main => false, - } - - host { "puppet": - ensure => absent, - } - } - - # These should be included after puppetmaster - include nodo::vserver - include database - include git::daemon - include websites::admin - include nagios::headless - include nagios::defaults - - # Nagios apache workaround - file { "/etc/apache2/conf.d/nagios3.conf": - ensure => absent, - } - - # Update master's puppet.conf if you change here - database::instance { "puppet": - password => "${db_password}", - } - - # Used for trac dependency graphs - package { "graphviz": - ensure => present, - } - - # Check domain registration - domain::check { $::domain: } -} -- cgit v1.2.3