Try using regsubst:
http://docs.puppetlabs.com/references/stable/function.html#regsubst

On Mon, Aug 27, 2012 at 3:03 PM, Douglas Garstang
<doug.garst...@gmail.com> wrote:
> I have an array:
>
> $nodes = ['gfs01' ,'gfs02', 'gfs03', 'gfs04]
>
> and a string variable:
>
> $brick_store = "/var/bricks"
>
> How can I append "/var/bricks" to each item in the array? Lack of a
> looping construct makes this challenging in puppet.
>
> Such that:
>
> brick_array = ['gfs01:/var/bricks', 'gfs02:/var/bricks', ... ]
>
> I also need to come up with a way to append a further sequence of
> incrementing brick numbers to the items as well.
>
> Doug
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaug...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to