- From: Bryan McLellan <
>
- To:
- Subject: [chef] Re: Re: how to know whether knife bootstrap succeeds?
- Date: Sat, 1 Oct 2011 09:04:36 -0400
On Thu, Sep 29, 2011 at 1:41 PM, Haim Ashkenazi
<
>
wrote:
>
AFAIK it always exits with exit-code 0 so unless you look at the output you
>
can't tell whether it failed. I wrote my own wrapper to launch ec2 instance,
>
use Chef::Knife::Bootstrap's ssh_command to get the parsed template (which I
>
modified and added 'set -e') and use custom Net::SSH block to indicate the
>
exit code of the command. It was a little work, but since I use the same
>
process for many machine types it was worth it. If you're interested I can
>
post relevant parts of the code here.
There is some discussion surrounding returning exit codes from knife
on this ticket:
http://tickets.opscode.com/browse/CHEF-2627
Bryan
- [chef] Re: Re: how to know whether knife bootstrap succeeds?, Bryan McLellan, 10/01/2011
Archive powered by MHonArc 2.6.16.