]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
see if we can't get buildd info from ldap
authorStephen Gran <steve@lobefin.net>
Mon, 16 Apr 2012 18:56:21 +0000 (19:56 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 16 Apr 2012 18:56:21 +0000 (19:56 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb

index 5cc6742df2455dbb23b2dc100cc8e08010ed1689..74dcd892bee630cf4a156a2fc2c569746266a548 100644 (file)
@@ -13,6 +13,7 @@ module Puppet::Parser::Functions
         raise Puppet::ParseError, "Host #{host} does not have ipHostNumber values in ldap"
       end
       nodeinfo['hoster'] = function_whohosts(nodeinfo['ldap']['ipHostNumber'], "/etc/puppet/modules/debian-org/misc/hoster.yaml")
+      nodeinfo['buildd'] = nodeinfo['ldap']['purpose'].include?('buildd')
 
       nodeinfo['misc'] = {}
       fqdn = lookupvar('::fqdn')