From: Stephen Gran Date: Wed, 6 May 2009 22:45:04 +0000 (+0100) Subject: that's probably the fix X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f48f5fae4ecfa7726b3d5256b1024c15a99565ab;p=mirror%2Fdsa-puppet.git that's probably the fix 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 aae67bce2..eb99a06b4 100644 --- a/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb +++ b/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb @@ -27,10 +27,10 @@ module Puppet::Parser::Functions results['rtmaster'] = host == 'spohr.debian.org' results['packagesmaster'] = host == 'powell.debian.org' -# nodeinfo['reservedaddrs'] = case host -# when "ball.debian.org": '0.0.0.0/8 : 127.0.0.0/8 : 169.254.0.0/16 : 172.16.0.0/12 : 192.0.0.0/17 : 192.168.0.0/16 : 224.0.0.0/4 : 240.0.0.0/5 : 248.0.0.0/5' -# else '0.0.0.0/8 : 127.0.0.0/8 : 10.0.0.0/8 : 169.254.0.0/16 : 172.16.0.0/12 : 192.0.0.0/17 : 192.168.0.0/16 : 224.0.0.0/4 : 240.0.0.0/5 : 248.0.0.0/5' -# end + results['reservedaddrs'] = case host + when "ball.debian.org": '0.0.0.0/8 : 127.0.0.0/8 : 169.254.0.0/16 : 172.16.0.0/12 : 192.0.0.0/17 : 192.168.0.0/16 : 224.0.0.0/4 : 240.0.0.0/5 : 248.0.0.0/5' + else '0.0.0.0/8 : 127.0.0.0/8 : 10.0.0.0/8 : 169.254.0.0/16 : 172.16.0.0/12 : 192.0.0.0/17 : 192.168.0.0/16 : 224.0.0.0/4 : 240.0.0.0/5 : 248.0.0.0/5' + end ldap = LDAP::Conn.new('db.debian.org')