FAQ
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+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.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Robin Lee Powell at Sep 17, 2013 at 7:37 pm

    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+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.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Chris McDermott at Sep 18, 2013 at 2:14 pm
    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 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+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.
    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.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jcbollinger at Sep 19, 2013 at 1:54 pm

    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+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.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedSep 17, '13 at 7:35p
activeSep 19, '13 at 1:54p
posts4
users3
websitepuppetlabs.com

People

Translate

site design / logo © 2021 Grokbase