[chef] Re: RE: Re: RE: Re: Registering chef client with a server


Chronological Thread 
  • From: Dimitar Georgievski < >
  • To:
  • Subject: [chef] Re: RE: Re: RE: Re: Registering chef client with a server
  • Date: Wed, 27 Feb 2013 18:12:09 -0500

I found the cause of the issue.

the knife boostrap command installs chef-client and the required files in /etc/chef
ll /etc/chef/
total 16
-rw------- 1 root root 1679 Feb 27 18:07 client.pem
-rw-r--r-- 1 root root  172 Feb 27 18:06 client.rb
-rw-r--r-- 1 root root   16 Feb 27 18:06 first-boot.json
-rw------- 1 root root 1675 Feb 27 18:06 validation.pem

If I replace http with https in chef_server_url which avoids one redirect on the nginx server. It looks like a bug
  
After this, I have to run the chef-client command manually to register the client with the server.

Where is the client.rb on the workstation that the knife bootstrap uploads on the new client?

Thanks,

Dimitar

On Wed, Feb 27, 2013 at 5:39 PM, James Scott < " target="_blank"> > wrote:
The knife user command is in Chef 11.0.4.

I just realized that I haven't documented it (it's brand new) and will do that right now.

If you are willing to look at the source code in the interim, it's at the bottom of this page:


Also, the knife bootstrap docs are here:


Similar to the bootstrap install example, you should be able to take the same approach to install Chef on any node that you want Chef to configure.

James

From: Dimitar Georgievski [ " target="_blank"> ]Subject: [chef] Re: RE: Re: Registering chef client with a server

Thanks James.  I wanted to mention that I followed the instructions in these links when installing the server and workstation.  
As I said in my previous replies my remaining issues seems to be the
1) Using knife to create a new user
2) Registration of new clients with knife bootstrap

Thanks,

Dimitar

On Wed, Feb 27, 2013 at 4:22 PM, James Scott < " target="_blank"> > wrote:
General instructions for installing the Chef 11 server:

A scenario for installing the Chef 11 server on a VM (this one uses VMWare Fusion, but the process will be similar for other VMs):

General instructions for installing and configuring the workstation (including the files from the server and the folder on the workstation):

Bootstrapping a node:

Hope these help!

James

From: Devdatto Ray [ " target="_blank"> ]
Sent: Wednesday, February 27, 2013 1:18 PM
To: " target="_blank">
Subject: [chef] Re: Registering chef client with a server

Josh Timberman's blog is another gold mine for information - http://jtimberman.housepub.org/. You can refer to that one also for guidance on Chef v11.

Thanks and Regards
Devdatto

On Wed, Feb 27, 2013 at 2:54 PM, Devdatto Ray < " target="_blank"> > wrote:
Please try this blog - http://www.linuxguy.in/how-to-install-and-configure-open-source-chef-server-11/

This one has the correct and updated instructions which I followed and was able to configure Open Source Chef Server and Client using v11.x on RHEL 5.7.

The hostnames are entered differently with https and no ref to port in v11.x

Thanks and Regards
Devdatto


On Wed, Feb 27, 2013 at 2:48 PM, Dimitar Georgievski < " target="_blank"> > wrote:
Hello,

I am trying unsuccessfully to register/configure a chef client with Open Source chef server. It should be simple but I find the available documentation outdated or to be missing important information.  It looks like it is focused on the hosted chef only. I am stuck on this step which I thought would be the simplest part of the installation and configuration.

Could someone share his/her experience with setting up an Open Source server and clients? Is there are a guide or tutorial on it? Maybe I missed it.

I am using ver 11.4.0 for both client and server on RHEL 5..6.

Thanks,

Dimitar









Archive powered by MHonArc 2.6.16.

§