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

Why I can’t wait for thenextweb – 2016

Why I’m excited for the TNW, mostly because I will be able to watch live one of the greates media content creators for me.
Casey Neistat in one of his youtube daily publications gave a interesting view on how he uses his time on everyday.

If you listen carefully at 2:17 Casey Neistat quotes the following:


This made me think on how I use my time during the day.

    • I normally sleep from 1am to 7am. ( 6 hours )
    • Going to work from 9:00 until 18:00/21:00 depends on the days. ( 9h/12h )
    • Get up-to-date with my subscriptions on YouTube, read some RSS and check my personal email ( 3h )
    • Prepare dinner and eat ( 1h) unless I’m lazy and order dinner
    • If I managed to get home early from work or I used it for some household tasks like laundry or catching up some fun time. Gaming, music or working on personal projects.
    • On top of this a normal day I may spent 2hours on commute

During the breakdown of how I spent my time during a normal day made me realise that even tho it seems I look quite busy during the day .. in reality I feel exactly the opposite.

It’s true that I spent almost half of my day in the office but … What could I start doing to avoid wasting all those hours at work ?

This made me think about how I managed my time and how bad I handle the extra time that I slowly let escape without noticing I could do more.

But that will be another post.