- From: John Martinez <
>
- To: "
" <
>
- Subject: [chef] Re: RE: Re: Auto scaling with chef questions
- Date: Mon, 10 Dec 2012 07:47:35 -0800
Every time you specify "-j" option. Also, as previously mentioned,
you'll need to clean up node and client on termination. I've written
my own shutdown script for this, and don't care if it's a reboot,
since the script to build up a node will recreate it on the server on
boot-up. We terminate more instances than reboot by A LOT due to
autoscale.
-john
On Dec 10, 2012, at 7:36 AM, Bridger Larson
<
>
wrote:
>
Does the first-run.json only run once or is it every time you specify it
>
with "-j"?
>
>
BRIDGER LARSON | Associate Build/Release Engineer | SirsiDynix
>
P: 801.223.5345 |
>
>
www.sirsidynix.com | TOLL FREE: +1 800.284.3969
>
>
-----Original Message-----
>
From: Jeffrey Hulten
>
[mailto:
>
Sent: Friday, December 07, 2012 5:00 PM
>
To:
>
>
Subject: [chef] Re: Auto scaling with chef questions
>
>
In autoscaling groups you set a launch config which can contain a
>
first-run.json that you can include to the chef-client.
>
>
{ "run_list" : "role[my_service]" }
>
>
chef-client -j /etc/chef/first-run.json
>
>
--
>
Jeffrey Hulten
>
Principal Consultant at Automated Labs, LLC
>
>
206-853-5216
>
Skype: jeffhulten
>
>
On Dec 7, 2012, at 3:50 PM, Cassiano Leal wrote:
>
>
> I had been thinking about the very same thing for a while, but haven't had
>
> the time to run some tests.
>
>
>
> My guess so far is that every new machine that spins up will run
>
> chef-client, create a node and a client using the validator key and using
>
> the ec2-****** FQDN as client/node name. Have you tried running 'hostname
>
> -f' on an EC2 server?
>
>
>
> --
>
> Cassiano Leal
>
>
>
> On Friday, December 7, 2012 at 21:43, Bridger Larson wrote:
>
>
>
>> The company I am working for is moving to AWS. I want to be able to have
>
>> Chef pre-installed on our application server AMI's so when they start up
>
>> they will be configured correctly.
>
>>
>
>> If one AMI can create many servers, how does the Chef client give them
>
>> different client names?
>
>> How does Chef know to remove them when the server is deleted?
>
>>
>
>> Thanks!
>
>> Bridger Larson
>
>
Archive powered by MHonArc 2.6.16.