Guest User

Untitled

a guest
Oct 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Puppet::Parser::Functions.newfunction(:hiera_resources, :type => :statement) do |args|
  2. raise Puppet::Error, "hiera_resources requires 1 argument; got #{args.length}" if args.length != 1
  3. apps = function_hiera_hash(args[0], {})
  4. apps.each do |res_type, resources|
  5. function_create_resources(res_type, resources)
  6. end
  7. end
Add Comment
Please, Sign In to add comment