Installing Chef in AWS

30 Nov 2014 18:35 chef

This is part of my quest to sort out my website. Installing Chef in AWS.

Updating Ubuntu

First, we’ll update Ubuntu:

sudo apt-get update
sudo apt-get upgrade

(You might want to use apt-get dist-upgrade if there’s a kernel security patch waiting.)

Obviously, we can get chef to do this itself, but there’s no point in installing outdated chef prequisites (e.g. ruby) only for chef to have to update them again in a moment.

Installing git

We’re going to need it later, so we might as well install it now:

sudo apt-get install git

Installing ChefDK

I want to use berkshelf to manage my cookbooks, but there’s [a problem] installing it as a gem on smaller AWS boxes.

Looks like we’ll have to install ChefDK instead.

At the time of writing, the latest version of ChefDK was 0.3.5:

sudo dpkg -i chefdk_0.3.5-1_amd64.deb