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

**URL:** <https://discourse.chef.io/t/how-to-set-up-a-chef-servier-and-client-on-centos-6-2/2554>\
**Category:** Chef Infra (archive)\
**Created:** [March 2, 2012, 6:52pm UTC](https://discourse.chef.io/t/how-to-set-up-a-chef-servier-and-client-on-centos-6-2/2554 "2012-03-02T18:52:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prakashan\_Korambath](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@Prakashan\_Korambath](https://discourse.chef.io/u/Prakashan_Korambath)\
**Post date:** [March 2, 2012, 6:52pm UTC](https://discourse.chef.io/t/how-to-set-up-a-chef-servier-and-client-on-centos-6-2/2554/1 "2012-03-02T18:52:46Z")

</div>

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](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](http://setup-chef-server.sh)

11. telnet localhost 4040

12. [http://localhost:4040](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

---

<div class="post-metadata">

**Author:** ![Bryan\_McLellan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_mclellan/32/81_2.png) [@Bryan\_McLellan](https://discourse.chef.io/u/Bryan_McLellan)\
**Post date:** [March 2, 2012, 7:23pm UTC](https://discourse.chef.io/t/how-to-set-up-a-chef-servier-and-client-on-centos-6-2/2554/2 "2012-03-02T19:23:33Z")

</div>

On Mar 2, 2012 1:01 PM, [ppk@ats.ucla.edu](mailto: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](http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS)

Bryan

---

<div class="post-metadata">

**Author:** ![Prakashan\_Korambath](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@Prakashan\_Korambath](https://discourse.chef.io/u/Prakashan_Korambath)\
**Post date:** [March 2, 2012, 7:48pm UTC](https://discourse.chef.io/t/how-to-set-up-a-chef-servier-and-client-on-centos-6-2/2554/3 "2012-03-02T19:48:34Z")

</div>

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](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.edu[mailto:ppk@ats.ucla.edu](mailto: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](http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS)
> 
> Bryan

---

<div class="post-metadata">

**Author:** ![AJ\_Christensen](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/aj_christensen/32/525_2.png) [@AJ\_Christensen](https://discourse.chef.io/u/AJ_Christensen)\
**Post date:** [March 2, 2012, 8:06pm UTC](https://discourse.chef.io/t/how-to-set-up-a-chef-servier-and-client-on-centos-6-2/2554/4 "2012-03-02T20:06:48Z")

</div>

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](mailto: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](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.edu[mailto:ppk@ats.ucla.edu](mailto: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](http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS)
> > 
> > Bryan

---

<div class="post-metadata">

**Author:** ![Prakashan\_Korambath](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@Prakashan\_Korambath](https://discourse.chef.io/u/Prakashan_Korambath)\
**Post date:** [March 2, 2012, 8:14pm UTC](https://discourse.chef.io/t/how-to-set-up-a-chef-servier-and-client-on-centos-6-2/2554/5 "2012-03-02T20:14:35Z")

</div>

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 Korambath[ppk@ats.ucla.edu](mailto: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](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.edu[mailto:ppk@ats.ucla.edu](mailto: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](http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS)
> > > 
> > > Bryan
