How to set up a Chef servier and Client on CentOS 6.2

Hi,

I am trying to set up a two node cluster running CentOS to learn features in
Chef. Here is what I have done so far.

  1. rpm -Uvh http://rbel.frameos.org/rbel6

  2. yum install ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++
    automake autoconf make curl dmidecode

  3. tar zxvf rubygems-1.8.17.tgz

  4. cd rubygems-1.8.17

  5. ruby setup.rb --no-format-executable

  6. gem update --system

  7. gem install chef --no-ri --no-rdoc

  8. mkdir -p /etc/chef

  9. yum install rubygem-chef-server

  10. setup-chef-server.sh

  11. telnet localhost 4040

  12. http://localhost:4040
    and changed admin password from chef321go

So far so good. Could someone post a link to set up the client part and
minimal tests? I will google it, but if I can get from you guys that would be
great. Thanks,

Prakashan

On Mar 2, 2012 1:01 PM, ppk@ats.ucla.edu wrote:

So far so good. Could someone post a link to set up the
client part and minimal tests?

The installation directions on the wiki should work.

http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS

Bryan

Thanks Brian. So in my two node set up, I repeat the same
steps as server node on the client node and additionally run
the knife command, right?

Something like this?

Client node:

  1. sudo rpm -Uvh http://rbel.frameos.org/rbel6
  2. sudo yum install ruby ruby-devel ruby-ri ruby-rdoc
    ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode
  3. tar zxvf rubygems-1.8.17.tgz
  4. cd rubygems-1.8.17
  5. gem install chef --no-ri --no-rdoc

  1. mkdir -p /etc/chef
  2. knife configure client ./

Thanks,

Prakashan

On 03/02/2012 11:23 AM, Bryan McLellan wrote:

On Mar 2, 2012 1:01 PM,<ppk@ats.ucla.edumailto:ppk@ats.ucla.edu> wrote:

So far so good. Could someone post a link to set up the
client part and minimal tests?

The installation directions on the wiki should work.

http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS

Bryan

you could use 'knife bootstrap' to set up your clients once your
server is setup.

Cheers,

--AJ

On 3 March 2012 08:48, Prakashan Korambath ppk@ats.ucla.edu wrote:

Thanks Brian. So in my two node set up, I repeat the same steps as server
node on the client node and additionally run the knife command, right?

Something like this?

Client node:

  1. sudo rpm -Uvh http://rbel.frameos.org/rbel6

  2. sudo yum install ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc
    gcc-c++ automake autoconf make curl dmidecode

  3. tar zxvf rubygems-1.8.17.tgz

  4. cd rubygems-1.8.17

  5. gem install chef --no-ri --no-rdoc


  1. mkdir -p /etc/chef
  2. knife configure client ./

Thanks,

Prakashan

On 03/02/2012 11:23 AM, Bryan McLellan wrote:

On Mar 2, 2012 1:01 PM,<ppk@ats.ucla.edumailto:ppk@ats.ucla.edu> wrote:

So far so good. Could someone post a link to set up the
client part and minimal tests?

The installation directions on the wiki should work.

http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS

Bryan

Thanks. I am installing OS on my second node now. I will
try both ways.

knife bootstrap IP_ADDR -d centos5-gems

Prakashan

On 03/02/2012 12:06 PM, AJ Christensen wrote:

you could use 'knife bootstrap' to set up your clients once your
server is setup.

Cheers,

--AJ

On 3 March 2012 08:48, Prakashan Korambathppk@ats.ucla.edu wrote:

Thanks Brian. So in my two node set up, I repeat the same steps as server
node on the client node and additionally run the knife command, right?

Something like this?

Client node:

  1. sudo rpm -Uvh http://rbel.frameos.org/rbel6

  2. sudo yum install ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc
    gcc-c++ automake autoconf make curl dmidecode

  3. tar zxvf rubygems-1.8.17.tgz

  4. cd rubygems-1.8.17

  5. gem install chef --no-ri --no-rdoc


  1. mkdir -p /etc/chef
  2. knife configure client ./

Thanks,

Prakashan

On 03/02/2012 11:23 AM, Bryan McLellan wrote:

On Mar 2, 2012 1:01 PM,<ppk@ats.ucla.edumailto:ppk@ats.ucla.edu> wrote:

So far so good. Could someone post a link to set up the
client part and minimal tests?

The installation directions on the wiki should work.

http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS

Bryan