fqdn = args[0]
nodeinfo = args[1]
- localinfo = lookupvar('localinfo')
- allnodeinfo = lookupvar('allnodeinfo')
+ localinfo = lookupvar('site::localinfo')
+ allnodeinfo = lookupvar('site::allnodeinfo')
raise Puppet::ParseError, "entropy_provider: Cannot learn fqdn" unless fqdn
raise Puppet::ParseError, "entropy_provider: Cannot learn nodeinfo" unless nodeinfo
nodeinfo['hoster'] = function_whohosts(nodeinfo['ldap']['ipHostNumber'], "/etc/puppet/modules/debian-org/misc/hoster.yaml")
nodeinfo['misc'] = {}
- fqdn = lookupvar('fqdn')
+ fqdn = lookupvar('::fqdn')
if fqdn and fqdn == host
- v4ips = lookupvar('v4ips')
+ v4ips = lookupvar('::v4ips')
if v4ips
nodeinfo['misc']['v4addrs'] = v4ips.split(',')
nodeinfo['misc']['natted'] = intersection.empty?
end
- v6ips = lookupvar('v6ips')
+ v6ips = lookupvar('::v6ips')
if v6ips and v6ips != ""
nodeinfo['misc']['v6addrs'] = v6ips.split(',')
end