From: Stephen Gran Date: Wed, 6 May 2009 20:18:06 +0000 (+0100) Subject: Add some more information to the nodeinfo function. boo for hardcoded X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=152bd40ec5b6ecc511a2d949a4238011a6ab4a36;p=mirror%2Fdsa-puppet.git Add some more information to the nodeinfo function. boo for hardcoded values, but it has to go somewhere Signed-off-by: Stephen Gran --- diff --git a/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb b/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb index 52b399dcf..d6535a267 100644 --- a/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb +++ b/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb @@ -21,6 +21,11 @@ module Puppet::Parser::Functions end end + results['bugsmaster'] = host == 'rietz.debian.org' + results['qamaster'] = host == 'merkel.debian.org' + results['rtmaster'] = host == 'spohr.debian.org' + results['packagesmaster'] = host == 'powell.debian.org' + ldap = LDAP::Conn.new('db.debian.org') results['ldap'] = []