Re: [Puppet Users] Create many similar files from an array in a module manifest

2010-12-13 Thread Felix Frank
On 12/13/2010 03:01 AM, Alex wrote: > Hi, > > I want to create a single configuration file with one or two > differences, many times. Therefore, i'd like to do the following in > pseudo-code: > > files = [(a,b), (c,d), (e,f)...] > foreach a,b in files: > create_file(a,b) > > Which can then use

[Puppet Users] Create many similar files from an array in a module manifest

2010-12-12 Thread Alex
Hi, I want to create a single configuration file with one or two differences, many times. Therefore, i'd like to do the following in pseudo-code: files = [(a,b), (c,d), (e,f)...] foreach a,b in files: create_file(a,b) Which can then use what I think is a valid definition: define create_file($p