# File:: params.pp # Author:: <%= config[:author] %> (<%= config[:mail] %>) # Copyright:: Copyright (c) <%= Time.now.year %> <%= config[:author] %> # License:: <%= config[:license].capitalize %> # # ------------------------------------------------------------------------------ # You need the 'future' parser to be able to execute this manifest (that's # required for the each loop below). # # Thus execute this manifest in your vagrant box as follows: # # sudo puppet apply -t --parser future /vagrant/tests/params.pp # # include '<%= config[:shortname] %>::params' $names = <%= config[:params] %> <% config[:params].each do |v| %> notice("<%= config[:shortname] %>::params::<%= v %> = ${<%= config[:shortname] %>::params::<%= v %>}") <% end %> #each($names) |$v| { # $var = "<%= config[:shortname] %>::params::${v}" # notice("${var} = ", inline_template('<%%= scope.lookupvar(@var) %>')) #}