[Puppet Users] Hash and loops

2014-01-26 Thread Jose Luis Ledesma
Hello, You should look the create_resources: http://docs.puppetlabs.com/references/latest/function.html#createresources Regards, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it,

[Puppet Users] Hash and loops

2014-01-26 Thread Thomas Bendler
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 va