On Saturday, July 7, 2012 at 1:45 AM, JD Harrington wrote:
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`. Iended up doing this because my recipe to launch new MySQL slavescurrently requires copying ~150GB of data from a single EBS volumecreated from a snapshot onto a newly created EBS RAID set, which cantake a few hours and my SSH connections were timing out. But, thisseems like it would work in this scenario as well.I call `knife ec2 server create` from a wrapper script which setsROLES and ENVIRONMENT which are used in this template. That's a bithacky and there's probably a better way to do this, but it's workingfor me for now.The downside to this is that you lose the in-line output fromchef-client, but it's easy to ssh into the machine and tail/var/log/chef.log to watch it's progress.
Archive powered by MHonArc 2.6.16.