[chef] Re: Re: Re: Re: How to get Chef Server to add itself as a node?


Chronological Thread 
  • From: Greg Barker < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Re: How to get Chef Server to add itself as a node?
  • Date: Thu, 11 Jun 2015 05:58:40 -0700

So is it simply a matter of adding the chef-client cookbook and setting the node["chef-client"]["config"]["chef_server_url"] since `knife ec2 server create` isn't doing that for me like it does for my other nodes?

On Thu, Jun 11, 2015 at 5:29 AM, Mathieu Martin < " target="_blank"> > wrote:
You did the initial setup with Chef solo, which makes sense, because Chef solo doesn't require a Chef server, right? Solves the chicken & egg problem when setting up your Chef server.

Now that it's set up and presumably working as a Chef server, you need to start using Chef Client to manage it. Not Chef solo :-)

Mat

Last time I used the aws cli to spin up an EC2 instance that will become my chef server.

Then I ran a simple little fabric script that does the following:
* Copies encrypted_data_bag_secret, bitbucket deploy key, and known_hosts file to the instance
* yum install git
* Clone down my chef repo from bitbucket
* Runs berks package on my cookbooks, copies it to the instance, and untar it (I think `berks package` is run locally, maybe it should be run on the server?)
* Creates a solo.rb file
* Run chef-solo with run list role[mycorp_chef_server], from there it's mainly just the chef-server cookbook

I haven't looked at this script in awhile, maybe there's a better way to go about this?


On Wed, Jun 10, 2015 at 1:39 PM, Ranjib Dey < " target="_blank"> > wrote:
how you provision chef server?

On Wed, Jun 10, 2015 at 12:36 PM, Greg Barker < " target="_blank"> > wrote:
How do I get my Chef Server to add itself as a node during provisioning?






Archive powered by MHonArc 2.6.16.

§