↓ Archives ↓

First steps with Chef

Today, Jens and I got to play with Chef which supposedly is the hot sh$&!t when it comes to infrastructure automation and such. Installing your own Chef server seems hard at first but will work in the end.

If you’re using Debian, the APT sources will save you some headaches. Just add

deb http://apt.opscode.com/ squeeze main

to your /etc/apt/sources.list and do something like

wget -qO - http://apt.opscode.com/packages@opscode.com.gpg.key | sudo apt-key add -
sudo apt-get update

to be sure to be getting what you asked for. Then, a little sudo apt-get install chef will do the trick to set up a client and sudo apt-get install chef-server will supercharge your node with a fully blown chef server, including but not limited to CouchDB, Solr, RabbitMQ and other fancy stuff. (You’ll want to do this on two different nodes, so use Virtual Box or something.)

After you’ve set up two nodes like that, try following the rest of the instructions in this tutorial and do the first cookbook example, then you’ll have come as far as we have today.

I will update this post as we dig deeper – hopefully later this week.

1 Comment

  • Jul 12th 201101:07
    by Jan B

    I’ve been very happy using chef to bootstrap EC2 instances for Hadoop/HBase/Solr stuff. Unfortunately when combining multiple roles and recipes in a run list I sometimes get odd behavior with not all entries in the list being executed. Apparently the run list gets re-written at some point in time. That is kind of annoying and I didn’t find a fix for it. Otherwise it’s really convenient.

  • Leave a Reply