R.I.Pienaar: > here's a very simple one that loops an array and create 'notify' > resources: > define print { notify{"the message is: ${name}": } } > print{["one", "two", "three"]: }
Strictly speaking, this isn't really "looping" on the array so much as "mapping" on the array (there may be a more specific term out there in FP-land). There ought to be no guarantee of the order in which these notifies are realized, and the only promised result should be that each element will be realized exactly once before the operation on the array has completed. Nit-picky, I know, but it's important to avoid procedural language when discussing a declarative system. -- You are in an open field west of a big white house with a boarded front door. There is a small mailbox here. > _ -- 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.