Issue #3933 has been updated by Nigel Kersten.

I can imagine myself wanting this both client and server side.

How about a metaparameter:

<pre>
foo_type { "my_foo":
   ...
   exitonfail => true,
}
</pre>

and a command line switch that effectively sets this on all resources:
<pre>
puppetd --exitonfail
</pre>

I quite like 'failonfail' too, but feel that it's not as appropriate for the 
metaparameter. We could name them differently... but that could lead to 
confusion.

I would argue that if you're scheduling puppetd with --test you're Doing It 
Wrong. 

test == +onetime+, +verbose+, +ignorecache, +no-daemonize+, and 
+no-usecacheonfailure+.

If you're scheduling puppetd, you should use:

--onetime --no-daemonize

but not the others. Well maybe verbose if you want verbose logs, but that would 
be about it.  That being said, I'm not entirely convinced that --test should 
imply --exitonfail

"exitonfail" doesn't feel right as a name for puppetd in daemon mode though... 
----------------------------------------
Feature #3933: Option to make Puppet fail as soon as a resource fails.
http://projects.puppetlabs.com/issues/3933

Author: Nigel Kersten
Status: Accepted
Priority: Normal
Assignee: 
Category: plumbing
Target version: 
Affected version: 0.25.4
Keywords: 
Branch: 


I think I might have filed this before on the old trac system, but I can't find 
it.

Basically I'd like the equivalent of bash "set -e" on Puppet client runs.  When 
you're debugging weird transient failures, it would be a lot faster if you 
could just make puppetd die as soon as a resource failed.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to