Resources are not guaranteed to run in any order. If you use puppet often and you forget some requires you will notice that the resources don't get run in the same order, use require and before, if you need a resource ensured before another.

If I remember right, and nothing changed from the moment I read this, definitions allow require. But be warned it's not quite the require you would expect. It's more of a resources in the define inherit this require. So all resources in the define get the require *except* those that have a require in the definition.


Check the second example from http://docs.reductivelabs.com/guides/language_tutorial.html#definitions
for the smart way to do this, this one should be right and up to date.



Silviu


On 01/18/2010 01:07 PM, Jesús Couto wrote:
To show I'm a complete clueless newbie, let me add the more fundamental question "resources on a class/definitions get done on the order it is specifed, right? No need to require/before them inside, right?" to the other one.




--
------------------------------

Jesús Couto F.


--
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.

--
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.

Reply via email to