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 -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@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.
Nikola Petrov
2013-May-23 09:19 UTC
Re: [Puppet Users] How to trace an order of all execs ?
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 On Thu, May 23, 2013 at 01:05:56AM -0700, przemol wrote:> 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 > > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@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. > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@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.
Nikola, thanks for --trace --debug. It helped me a lot with fighting bug I had with execs. On Thursday, May 23, 2013 10:19:58 AM UTC+1, nikolavp wrote:> > 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 > > On Thu, May 23, 2013 at 01:05:56AM -0700, przemol wrote: > > 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 > > > > -- > > 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 <javascript:>. > > To post to this group, send email to puppet...@googlegroups.com<javascript:>. > > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@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.
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 -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@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.