- From: Noah Kantrowitz <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Partial Convergence Support
- Date: Mon, 23 Jun 2014 18:08:04 -0700
I think you are talking about doing explicit two-run converges where
something takes two full executions of chef-client? The only case where that
generally comes up is windows requiring a reboot to install certain features,
and even that seems fortunately minimal these days. Beyond that, Chef is very
much designed to avoid doing this, so as Adam said a concrete case might help.
--Noah
On Jun 23, 2014, at 5:55 PM, Adam Jacob
<
>
wrote:
>
I don't understand what you're trying to accomplish. :) Can you give us
>
more of a use case?
>
>
>
On Mon, Jun 23, 2014 at 5:46 PM, Greg Zapp
>
<
>
>
wrote:
>
Hi Adam,
>
>
Are you aware of any built-in way to indicate it has not completed without
>
throwing an exception or otherwise stopping the run?
>
>
Thanks,
>
-Greg
>
>
>
On Tue, Jun 24, 2014 at 12:41 PM, Adam Jacob
>
<
>
>
wrote:
>
A non zero exit code does exactly that in Chef. If it is completed, we
>
return 0.
>
>
On Jun 23, 2014 4:18 PM, "Greg Zapp"
>
<
>
>
wrote:
>
Non-zero exit codes do not necessarily, or do not have to, indicate an
>
error.
>
>
I'm trying to accomplish Chef finishing and indicating it has not fully
>
converged the node. I apologize if that wasn't clear in my original post.
>
>
-Greg
>
>
>
On Tue, Jun 24, 2014 at 11:08 AM, Noah Kantrowitz
>
<
>
>
wrote:
>
It should exit with a non zero code if there is an error, what are you
>
trying to accomplish!
>
>
>
On June 23, 2014 3:59:17 PM PDT, Greg Zapp
>
<
>
>
wrote:
>
Hello,
>
>
Is anyone aware of a handler, or a technique in use, for indicating that
>
Chef has not successfully converged the node?
>
>
I'm considering writing a custom handler that will check an "unfinished"
>
flag and either kill chef with a custom exit code( :| ) or write something
>
to stdout that I can look for.
>
>
>
Cheers,
>
-Greg
>
>
>
>
>
>
--
>
Opscode, Inc.
>
Adam Jacob, Chief Dev Officer
>
T: (206) 619-7151 E:
>
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
Archive powered by MHonArc 2.6.16.