Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Puppet::Parser::Functions.newfunction(:hiera_resources, :type => :statement) do |args|
- raise Puppet::Error, "hiera_resources requires 1 argument; got #{args.length}" if args.length != 1
- apps = function_hiera_hash(args[0], {})
- apps.each do |res_type, resources|
- function_create_resources(res_type, resources)
- end
- end
Add Comment
Please, Sign In to add comment