Merge branch 'master' of git+ssh://zobel@puppet.debian.org/srv/puppet.debian.org...
[mirror/dsa-puppet.git] / files / etc / puppet / lib / puppet / parser / functions / nodeinfo.rb
1 module Puppet::Parser::Functions
2   newfunction(:nodeinfo, :type => :rvalue) do |args|
3
4     host = args[0]
5     yamlfile = args[1]
6
7     require '/etc/puppet/lib/puppet/parser/functions/ldapinfo.rb'
8
9     results         = function_yamlinfo(host, yamlfile)
10     results['ldap'] = function_ldapinfo(host, '*')
11     return(results)
12   end
13 end
14
15 # vim: set fdm=marker ts=2 sw=2 et: