$localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml")
$nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
$hosterinfo = whohosts($nodeinfo, "/etc/puppet/modules/debian-org/misc/hoster.yaml")
- $allnodeinfo = allnodeinfo(["sshRSAHostKey", "ipHostNumber"], ["purpose"])
+ $allnodeinfo = allnodeinfo("sshRSAHostKey ipHostNumber", "purpose")
$mxinfo = allnodeinfo("mXRecord")
notice("hoster for ${fqdn} is ${hosterinfo}")
module Puppet::Parser::Functions
newfunction(:allnodeinfo, :type => :rvalue) do |args|
- required = args.shift
- optional = args.shift
+ required = args.shift.split()
+ optional = args.shift.split()
allhosts = function_ldapinfo('*', required+optional )
res = {}