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


Chronological Thread 
  • From: Mathieu Martin < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: How to get Chef Server to add itself as a node?
  • Date: Thu, 11 Jun 2015 12:29:02 +0000

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

On Thu, Jun 11, 2015 at 8:01 AM Greg Barker < "> > wrote:
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.

§