[Puppet Users] Fail/stop after a step fails?
Is it possible to get puppet to just *give up* if a particular step fails? Thousands upon thousands of "Skipping because of failed dependencies" gets really old. -Robin -- http://intelligence.org/ : Our last, best hope for a fantastic future. .i ko na cpedu lo nu stidi vau loi jbopre .i danfu lu na go'i li'u .e lu go'i li'u .i ji'a go'i lu na'e go'i li'u .e lu go'i na'i li'u .e lu no'e go'i li'u .e lu to'e go'i li'u .e lu lo mamta be do cu sofybakni li'u -- 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+unsubscr...@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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Fail/stop after a step fails?
On Tue, Sep 17, 2013 at 12:35:15PM -0700, Robin Lee Powell wrote: > > Is it possible to get puppet to just *give up* if a particular > step fails? Thousands upon thousands of "Skipping because of > failed dependencies" gets really old. Or, indeed, have it stop after a particular step *succeeds* would be fine too. -Robin -- 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+unsubscr...@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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Fail/stop after a step fails?
Try the fail() function. Something like this: if ($continue != true) { fail('Condition not met, failing now.') } On Tue, Sep 17, 2013 at 1:36 PM, Robin Lee Powell < rlpow...@digitalkingdom.org> wrote: > On Tue, Sep 17, 2013 at 12:35:15PM -0700, Robin Lee Powell wrote: > > > > Is it possible to get puppet to just *give up* if a particular > > step fails? Thousands upon thousands of "Skipping because of > > failed dependencies" gets really old. > > Or, indeed, have it stop after a particular step *succeeds* would be > fine too. > > -Robin > > -- > 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+unsubscr...@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. > 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+unsubscr...@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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Fail/stop after a step fails?
On Wednesday, September 18, 2013 9:14:26 AM UTC-5, mcd wrote: > > Try the fail() function. Something like this: > > if ($continue != true) { > fail('Condition not met, failing now.') > } > > Nope. Like all Puppet DSL functions, fail() is executed on the master during catalog compilation. It causes catalog compilation to fail. That doesn't address Robin's desire to interrupt the application of resources mid-stream in the event of a resource application failure. Puppet's standard behavior is to attempt to apply as much of the catalog as possible despite the failure of some resources. As far as I know or can determine, there is no option to instead stop applying resources when one fails. It may be, however, that the number of separate warnings could be greatly reduced by wrapping groups of the dependent resources into defined type instances, so that (I speculate) you get "Skipped" messages only for the comparatively few wrappers instead of for every wrapped resource. Or you could consider filtering out the messages. You could also consider filing an RFE. 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+unsubscr...@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. For more options, visit https://groups.google.com/groups/opt_out.