From b7652f1ba7fcf0f76273ab36cb53ff1871b6fa60 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 30 May 2013 13:50:39 +0200 Subject: [PATCH] get porterbox info from ldap --- modules/debian-org/misc/local.yaml | 14 -------------- .../lib/puppet/parser/functions/nodeinfo.rb | 1 + 2 files changed, 1 insertion(+), 14 deletions(-) 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'] -- 2.20.1