Hallo!

paul matthews <[EMAIL PROTECTED]>:
>Like Matt I have been using "before=>" statements as opposed to "notify=>"
>to try and ensure dependency order. Could someone highlight the distinction
>as both seem to ensure a task is run and completed before the next step is
>called.

'before' and 'require' just specify the ordering: If you want A to be
ensured before B, you can either say "before => B" on A or "require =>
A" on B. It is just a matter of where the ordering hint if placed.

'notify' and 'subscribe' are stronger versions of 'before' and
'require': They specify ordering but also generate events. This means
that if a dependent resource was acted upon, the current resource is
re-evaluated. This comes handy if you want for example an exec to be
performed each time a file has been modified.

All of this is documented at
<http://reductivelabs.com/trac/puppet/wiki/TypeReference#available-metaparameters>.

Regards

Christian

-- 
Dipl.-Inf. Christian Kauhaus <>< · [EMAIL PROTECTED] · systems administration
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 11 · fax +49 345 1229889 1
Zope and Plone consulting and development

Attachment: pgpNRPGAPKSJm.pgp
Description: PGP signature

Reply via email to