Automation with CHEF – Work as a chef

Setting your Chef server

Chef Server is the highly scalable foundation of the Chef platform. Create a flexible, dynamic infrastructure across multiple datacenters, public and private clouds, and in heterogeneous environments.

The idea?

Having a chef-server up and running and adding at least on chef client to it.

What will we need for first Chef lesson?

  • 1 Machine that will be our Server

Lets start with configuring the Server.

We will be using the following version of Ubuntu

automation Ubuntu Release Version - Chef

We will use chef-server-core_12.4.1-1_amd64.deb

We can adquire it from


Once we have the file, it’s time to install it.

dpkg -i chef-server-core_12.4.1-1_amd64.deb

automation Install Chef-Server-Core

After we have our chef-server is installed, is time to create our client and organization certificate.

automation Chef-Installed

Run the following command

        chef-server-ctl user-create chef-client Chef Client 'chefclient' --filename /etc/chef/client.pem
        chef-server-ctl org-create orgchef 'Chef Private' --association_user chef-client --filename /etc/chef/organization.pem
Useful Chef Server Modules
  • opscode-reporting
  • opscode-manage

Run the following command

        chef-server-ctl install opscode-reporting
        chef-server-ctl install opscode-manage
        chef-server-ctl reconfigure
        opscode-manage-ctl reconfigure

We should now be able to reach our Chef-Server web interface.

Chef Server – Web Interface

automation web-interface

The usage of the Web – Interface to manage wen-nodes is limited to 25 nodes for the free version, but you can have unlimited nodes.

Chef is a useful tool to use to manage and to bring automation to your infrastructure, in the next post we will address the creation of a chef client machine and how we can add it to out pull of servers managed by our chef server

Leave a Reply

Your email address will not be published. Required fields are marked *