- From: "Michael F. Weinberg" <
>
- To: "
" <
>
- Subject: [chef] Re: AWS CloudFormation Init and chef-client
- Date: Tue, 17 Mar 2015 08:56:12 -0700
Hey Michael,
You can use cfn-init to install the omnibus chef-client, copy the
validation.pem from S3 (unless it's pre-baked in your ami), and write a
client.rb config file and a first-run.json.
Then you just need a cfn command of 'chef-client -c <path to config> -j <path
to first run>
AWS definitely has some example cfn code to do something like this.
--
Michael F. Weinberg | Director of Operations
http://heavywaterops.com | @heavywaterops
>
On Mar 17, 2015, at 8:38 AM, Michael Lindsay
>
<
>
>
wrote:
>
>
Hello All,
>
>
I have ami's that I'm creating from chef scripts, and I would like them to
>
re-register themselves with my chef server on boot. It looks as though it
>
ought to be a pretty straightforward thing, but I haven't seen any examples
>
out there. All of the examples appear to assume a base image without
>
chef-client and all it's goodness. So my question is, what is the minimum
>
required to have an instance spun up from an ami register and come under
>
control of chef server? I'd like to stuff that into CloudFormation
>
UserData and speed up my deployments.
>
>
Thanks, again,
>
- Michael
Archive powered by MHonArc 2.6.16.