FAQ

On Thu, Oct 10, 2013 at 11:13 AM, Jay wrote:

I'm looking for something like a "break" statement, which should not
proceed execution of following resources.
Oh! The built-in fail() function will stop catalog compilation full-stop
and fail with a parse error. If what you're looking for is to effectively
abort the Puppet agent run based on some condition, that's a good way to do
it. http://docs.puppetlabs.com/references/latest/function.html#fail


--
Ryan Coleman | Modules & Forge | ryanycoleman on twitter & #puppet IRC

--
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

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedOct 10, '13 at 5:59a
activeOct 10, '13 at 9:04p
posts5
users3
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase