You should look the create_resources:
http://docs.puppetlabs.com/references/latest/function.html#createresources
Regards,
Hi @all,I try to pass a hash to a module class like this:class { 'modulename':filecontent => {name1 => 'value1',name2 => 'value2',...namex => 'valuex',}}The class should take the hash list, loop over the list and create i.e. file resources with namex and content valuex. What is the best way to do this and, even more important, is it possible to do something like this?