7 yaml = YAML.load_file("/etc/puppet/modules/debian-org/misc/nodeinfo.yaml")
10 ['nameinfo', 'footer'].each do |detail|
11 if yaml.has_key?(detail)
12 if yaml[detail].has_key?($name)
13 results[detail] = yaml[detail][$name]
18 ldap = LDAP::Conn.new('samosa.debian.org')
21 filter = '(hostname=' + $name +')'
23 ldap.search2('ou=hosts,dc=debian,dc=org', LDAP::LDAP_SCOPE_SUBTREE, filter) do |x|
26 rescue LDAP::ResultError