Installing Chef on CentOS

If you are looking for an introductory guide to installing Chef on CentOS 6.x systems then I highly recommend this one. It is very well written, easy to follow, and it works. I have tried it myself. Ironic as it sounds, I am seriously considering writing an Ansible play to automate the installation of Chef nodes.

In the guide here are two things to check:

  1. Open ports in iptables on your chef server as recommended by OpsCode. I opened 80, 443, and 9672. They worked for me but may be more that needed.
  2. During the server install, when you open the server web page for the first time Chef will show you the admin private key. Copy and paste this into a file and save it. Use this version for the workstation install. The scp command to copy it from your sever will not work.

Categories: DevOps

Tags: ,

2 replies

  1. Aaron, are you using both Ansible and Chef together, or are you evaluating them both? I am not a developer but looking into Ansible (which is how I found your blog).


    • I’ve been evaluating them both. After some initial research I narrowed down my choice to either Ansible or Chef. There is much to like in Puppet and Salt–I like Puppet’s purge command a lot for example–but I prefer the simpler, sequential execution models of Ansible and Chef.

      After using Chef for a while I’m leaning towards Ansible. I like Ansible’s design better; Chef is very complicated even for developers. Chef did show me the value of pull mode so I will be trying Ansible’s pull ability. I will post the results of my tests soon.



Share Your Ideas

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: