module Puppet::Parser::Functions
newfunction(:allnodeinfo, :type => :rvalue) do |attributes|
- require '/etc/puppet/lib/puppet/parser/functions/ldapinfo.rb'
attributes.unshift('*')
return (function_ldapinfo(attributes))
end
yamlfile = args[1]
require '/etc/puppet/lib/puppet/parser/functions/ldapinfo.rb'
- require '/etc/puppet/lib/puppet/parser/functions/yamlinfo.rb'
results = function_yamlinfo(host, yamlfile)
results['ldap'] = function_ldapinfo(host, '*')
}
node default {
+ $localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml")
$nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
$hoster = whohosts($nodeinfo, "/etc/puppet/modules/debian-org/misc/hoster.yaml")
notice("hoster for ${fqdn} is ${hoster}")
- $localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml")
$mxinfo = allnodeinfo("mXRecord")
include munin-node