nodeinfo = function_yamlinfo([host, yamlfile])
nodeinfo['ldap'] = function_ldapinfo([host, '*'])
unless nodeinfo['ldap']['ipHostNumber']
raise Puppet::ParseError, "Host #{host} does not have ipHostNumber values in ldap"
end
nodeinfo = function_yamlinfo([host, yamlfile])
nodeinfo['ldap'] = function_ldapinfo([host, '*'])
unless nodeinfo['ldap']['ipHostNumber']
raise Puppet::ParseError, "Host #{host} does not have ipHostNumber values in ldap"
end
nodeinfo['porterbox'] = (nodeinfo['ldap']['purpose'].respond_to?('include?') && nodeinfo['ldap']['purpose'].include?('porterbox'))
if lookupvar('::mta') == 'exim4'
unless nodeinfo['heavy_exim']
nodeinfo['smarthost'] = 'mailout.debian.org'
end
nodeinfo['porterbox'] = (nodeinfo['ldap']['purpose'].respond_to?('include?') && nodeinfo['ldap']['purpose'].include?('porterbox'))
if lookupvar('::mta') == 'exim4'
unless nodeinfo['heavy_exim']
nodeinfo['smarthost'] = 'mailout.debian.org'
end
- ns = function_hiera(['nameservers'])
- allow_dns_q = function_hiera(['allow_dns_query'])
+ ns = call_function('hiera',['nameservers'])
+ allow_dns_q = call_function('hiera',['allow_dns_query'])