[chef] Re: Re: Re: Re: Re: Knife Bootstrap for installing anf configuring chef client


Chronological Thread 
  • From: Jeremiah Snapp < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Knife Bootstrap for installing anf configuring chef client
  • Date: Sun, 18 Nov 2012 08:17:13 -0500

"knife bootstrap" is run from a system (typically a management
workstation) that already has chef-client installed and configured
correctly.  "knife bootstrap" is used to install chef-client on other
systems (nodes).  During the bootstrap process it uses the information
from your management workstation to correctly configure chef-client on
the node getting bootstrapped.

The rpms you are using are very out of date but if you want to
continue down that path for now then I would log into your chef-server
and install chef-client using these instructions.

http://blog.frameos.org/2011/11/04/installing-chef-client-from-rbel-in-rhelcentos/

Then you should be able to run the following command to configure
knife on your chef-server.  You may need to run it as root.  You can
change chef.admin and '~/chef-repo' to whatever you want.
cd ~
knife configure -i --defaults -u chef.admin -r ~/chef-repo
knife client list

Knife should query the server and display 'chef.admin' as proof that
it's working.

On your workstation you should just use the chef-client install script
found at http://www.opscode.com/chef/install/ to install chef-client.

Then you can copy the ~/.chef directory from your chef-server to your
management workstation.  You will also need to copy the
/etc/chef/validation.pem file from your chef-server to your ~/.chef
directory on your workstation.  You will need to modify the paths and
probably the url in ~/.chef/knife.rb on your workstation.  Now run
'knife client list' from your workstation and see if it works.

Now you should be able to run 'knife bootstrap' from your workstation
to bootstrap other systems (nodes).

This new blog post might help you if you'd rather not use frameos.org's rpm's.
http://jtimberman.housepub.org/blog/2012/11/17/install-chef-10-server-on-centos/



Archive powered by MHonArc 2.6.16.

§