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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.