[chef] Re: Re: How to handle the elastic_ip associate recipe to finish up smoothly?


Chronological Thread 
  • From: Bryan McLellan < >
  • To:
  • Subject: [chef] Re: Re: How to handle the elastic_ip associate recipe to finish up smoothly?
  • Date: Wed, 11 Jul 2012 17:26:52 -0400

On Thu, Jul 5, 2012 at 8:29 PM, Scott M. Likens 
< >
 wrote:
> Unfortunately if you are not running chef-solo under (screen and/or tmux)
> your SSH connection will get interrupted once the new IP address is attached
> to the instance.
>
> The only real way to make this better is to either do one of the following:
>
> Run chef-client under screen/tmux on the server itself.   Likely modifying
> the bootstrap so it installs screen (and or tmux) and then runs chef-client
> under that.
> Provision the servers first and then run knife bootstrap once the Elastic IP
> address is attached.
>
> ec2-run-instances ami-.... then follow up with ec2-associate-addresses to
> the instance.

It was proposed on KNIFE_EC2-67 [1] to add an option to knife-ec2 to
associate an address before beginning the bootstrap. Generally we try
to avoid adding ec2-tools features to knife-ec2 that aren't chef
specific, but it is simple and useful, so we weren't really sure where
to go with this at code review.

The bigger question is, are we lacking a way to run cookbooks in a
such a way that will trigger chef to finish and then restart itself?
One other example would be updating chef using chef, then continuing
along. Thoughts?

-- 
Bryan McLellan | opscode | technical program manager, open source
(c) 206.607.7108 | (t) @btmspox | (b) http://blog.loftninjas.org

[1] http://tickets.opscode.com/browse/KNIFE_EC2-67



Archive powered by MHonArc 2.6.16.

§