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


Chronological Thread 
  • From: JD Harrington < >
  • To:
  • Subject: [chef] Re: Re: Re: How to handle the elastic_ip associate recipe to finish up smoothly?
  • Date: Fri, 6 Jul 2012 22:00:58 +0200

On Fri, Jul 6, 2012 at 8:27 PM, Sachin Sagar Rai 
< >
 wrote:
> Anybody, any pointers?

I use a custom bootstrap that runs `chef-client --once --daemonize`. I
ended up doing this because my recipe to launch new MySQL slaves
currently requires copying ~150GB of data from a single EBS volume
created from a snapshot onto a newly created EBS RAID set, which can
take a few hours and my SSH connections were timing out. But, this
seems like it would work in this scenario as well.

I call `knife ec2 server create` from a wrapper script which sets
ROLES and ENVIRONMENT which are used in this template. That's a bit
hacky and there's probably a better way to do this, but it's working
for me for now.

The downside to this is that you lose the in-line output from
chef-client, but it's easy to ssh into the machine and tail
/var/log/chef.log to watch it's progress.

https://gist.github.com/3062423



Archive powered by MHonArc 2.6.16.

§