Re: [Puppet Users] use current array element when declaring multiple resources using an array

2010-11-18 Thread Felix Frank
On 11/10/2010 05:16 PM, Gabriel Filion wrote: On 11/10/2010 10:18 AM, luke.bigum wrote: Hi list, When declaring multiple resources at once with an array like this: file { [ foo, bar ]: ... } Is there a way to access the current array element so as to pass this value as a parameter? So the

RE: [Puppet Users] use current array element when declaring multiple resources using an array

2010-11-10 Thread Matthew Black
What you are looking for is a loop which does not exist in puppet, except for templates. I've never tried it but I've speculated it could be possible to create a manifest template and then use puppet to generate that manifest file in a similar fashion you are looking to do. -Original

Re: [Puppet Users] use current array element when declaring multiple resources using an array

2010-11-10 Thread Gabriel Filion
On 11/10/2010 10:18 AM, luke.bigum wrote: Hi list, When declaring multiple resources at once with an array like this: file { [ foo, bar ]: ... } Is there a way to access the current array element so as to pass this value as a parameter? So the foo resource has a parameter value foo and