On 18/02/10 11:14 PM, Frederik Wagner wrote:
unluckily there is no direct loop to do this, puppets array (and hash)
handling is rather rudimentary.
A hash construct will probably be present in the next major release
of Puppet: Rowlf.
besides that, it might be also worth to think about what you like to
do. There have been several threads about this topic in the past on
this list and while examining the actual problem one tried to solve,
the actual solution was nearly always to solve the problem in a
different and better way.
Remember puppet is a declarative langauge, which is order independent
unless you specify one. It is the intend of the puppet language, well
this fits in general for external DSLs, to only have a specific set of
instruction to address the domain it was invented for.
So far I missed looping only a few times and in general if I
re-thought the actual problem I tried to solve, I came up with a
cleaner solution without looping.
So if you don't see any other solution than loops you could outline
your problem and somebody might be able to help you.
cheers pete
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-us...@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.