From: Peter Palfrader Date: Tue, 26 May 2009 17:45:07 +0000 (+0200) Subject: move info on whether to install apache2 default config from manifest to nodeinfo... X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=d47582aa27e2e383f790e50f72ae082c2eca2826;p=mirror%2Fdsa-puppet.git move info on whether to install apache2 default config from manifest to nodeinfo/local.yaml --- diff --git a/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb b/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb index e9c81327a..9f849ffb2 100644 --- a/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb +++ b/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb @@ -51,6 +51,10 @@ module Puppet::Parser::Functions results['heavy_exim'] = "true" end + if yaml.has_key?('apache2_defaultconfig') and yaml['apache2_defaultconfig'].include?(host) + results['apache2_defaultconfig'] = "true" + end + ldap = LDAP::Conn.new('db.debian.org') results['ldap'] = [] diff --git a/manifests/site.pp b/manifests/site.pp index 21351416a..2e8000b06 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -50,13 +50,10 @@ node default { } } - case $apache2 { - "true": { case $hostname { - carver,rore,draghi,tartini,samosa,duarte,piatti: { include apache2 } - default: {} - } } - default: {} - } + case extractnodeinfo($nodeinfo, 'apache2_defaultconfig') { + "true": { include apache2 } + default: { } + } case $hostname { ancina,arcadelt,argento,brahms,goedel,goetz,lafayette,malo,murphy,praetorius,puccini,paer: diff --git a/modules/debian-org/misc/local.yaml b/modules/debian-org/misc/local.yaml index 8dcf193c8..62b615afb 100644 --- a/modules/debian-org/misc/local.yaml +++ b/modules/debian-org/misc/local.yaml @@ -80,6 +80,14 @@ heavy_exim: - rietz.debian.org - klecker.debian.org - powell.debian.org +apache2_defaultconfig: + - carver.debian.org + - draghi.debian.org + - duarte.debian.org + - piatti.debian.org + - rore.debian.org + - samosa.debian.org + - tartini.debian.org services: bugsmaster: rietz.debian.org qamaster: merkel.debian.org