On Wednesday, April 2, 2014 6:21:55 PM UTC-5, Ellison Marks wrote: > > Potentially easier, you could use prefix($scripts, '/path/'), which comes > from puppetlabs-stdlib to put the path on all members of the array. Then > just pass the now prefixed array to the defined type described above. This > avoids storing the script names externally, which may or may not be > desirable. If the scripts you want in cron might change now and then, then > the external lookup is the better way. > > +1
You beat me to it. Also, if you're willing to turn on the experimental "future" parser in recent Puppet then you can use its array-iteration mechanisms. (Though iteration isn't quite the right characterization -- in reality it's more like SIMD.) http://docs.puppetlabs.com/puppet/latest/reference/experiments_future.html http://docs.puppetlabs.com/puppet/latest/reference/experiments_lambdas.html John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5734ccbd-32ba-4f04-b4e9-ec4f3b18307d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
