end
end
+ if yaml.has_key?('services')
+ ['bugsmaster', 'qamaster', 'mailrelay', 'rtmaster', 'packagesmaster'].each do |service|
+ if yaml['services'].has_key?(service)
+ results[service] = host == yaml['services'][service]
+ end
+ end
+ end
+
+ if yaml.has_key?('need_smarthost') and yaml['need_smarthost'].include?(host)
+ results['smarthost'] = "mailout.debian.org"
+ results['smarthost_port'] = 587
+ else
+ results['smarthost'] = ''
+ results['smarthost_port'] = ''
+ 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')
results['ldap'] = []