FAQ
Given an array, I'd like to iterate over it with a counter to produce
something like this from a template:

foo.0 = ARRAYVALUE0
foo.1 = ARRAYVALUE1
foo.2 = ARRAYVALUE2

(where ARRAYVALUEn is replaced by the value, and the foo.n is
incremented for each value)

The puppet templates support iteration, but I don't see how to also
increment a counter to get the behaviour above? Is this possible?
Thanks.

--
James Patterson
jamespatterson@operamail.com

--
http://www.fastmail.fm - Or how I learned to stop worrying and
love email again

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJun 20, '12 at 9:39p
activeJun 21, '12 at 8:37a
posts4
users2
websitepuppetlabs.com

2 users in discussion

R.I.Pienaar: 2 posts James Patterson: 2 posts

People

Translate

site design / logo © 2022 Grokbase