How to trace an order of all execs ?

28 views
Skip to first unread message

przemol

unread,
May 23, 2013, 4:05:56 AM5/23/13
to puppet...@googlegroups.com
Hello,

I have some class which has quite a lot of execs with notify etc. Since puppet is not required to run them in the order they are in a file
is it possible to monitor an order of all execs including parameters/arguments for each exec ?

Regards

Nikola Petrov

unread,
May 23, 2013, 5:19:58 AM5/23/13
to puppet...@googlegroups.com
Well you can run echo with the parameters in a wrapper script. I am not
sure if puppet has support for this. Of course you can watch the order
with

--trace --debug

but it might not give you the whole command parameter but just the exec
title. If you can make those to match you will be ok with that method.

--
Nikola
> --
> 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 puppet-users...@googlegroups.com.
> To post to this group, send email to puppet...@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

przemol

unread,
May 23, 2013, 6:50:33 AM5/23/13
to puppet...@googlegroups.com
Nikola,

thanks for --trace --debug. It helped me a lot with fighting bug I had with execs.

jcbollinger

unread,
May 23, 2013, 8:57:12 AM5/23/13
to puppet...@googlegroups.com


On Thursday, May 23, 2013 5:50:33 AM UTC-5, przemol wrote:
Nikola,

thanks for --trace --debug. It helped me a lot with fighting bug I had with execs.


It is best if the Execs are not sensitive to the relative order in which they run, but to the extent that they are sensitive to order, Puppet provides relationships as a means to constrain the order in they may be applied to be among the acceptable ones.  Relationships can be declared via the 'require', 'before', 'subscribe', and 'notify' resource metaparameters, or via the analogous chaining operators, <-, ->, <~, and ~>.


John

Reply all
Reply to author
Forward
0 new messages