From: Peter Palfrader Date: Thu, 30 May 2013 11:50:39 +0000 (+0200) Subject: get porterbox info from ldap X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=b7652f1ba7fcf0f76273ab36cb53ff1871b6fa60;p=mirror%2Fdsa-puppet.git get porterbox info from ldap --- diff --git a/modules/debian-org/misc/local.yaml b/modules/debian-org/misc/local.yaml index dcc156c04..54632b4c6 100644 --- a/modules/debian-org/misc/local.yaml +++ b/modules/debian-org/misc/local.yaml @@ -193,20 +193,6 @@ services: - kaufmann.debian.org wiki: - wilder.debian.org - # new style porterbox (schroot, dd installable packages etc) - porterbox: - # once they are all on new-style, we can use ldap for this - - agricola.debian.org - - barriere.debian.org - - eder.debian.org - - falla.debian.org - - fischer.debian.org - - gabrielli.debian.org - - harris.debian.org - - merulo.debian.org - - partch.debian.org - - smetana.debian.org - - zelenka.debian.org host_settings: heavy_exim: - bellini.debian.org diff --git a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb index cca270c5a..cfbaa9c4c 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb @@ -14,6 +14,7 @@ module Puppet::Parser::Functions end nodeinfo['hoster'] = function_whohosts([nodeinfo['ldap']['ipHostNumber'], "/etc/puppet/modules/debian-org/misc/hoster.yaml"]) nodeinfo['buildd'] = (nodeinfo['ldap']['purpose'].respond_to?('include?') && nodeinfo['ldap']['purpose'].include?('buildd')) + nodeinfo['porterbox'] = (nodeinfo['ldap']['purpose'].respond_to?('include?') && nodeinfo['ldap']['purpose'].include?('porterbox')) if lookupvar('::mta') == 'exim4' unless nodeinfo['heavy_exim']