Category Archives: Technical

Trying out Chef (Opscode)

A friend of mine recently provided me with access to create some VPS machines, so I’ve set up:

  • A Master Chef server
  • A Database server
  • A Webhosting server

Now I’m trying to learn how to set up Chef on them. I tried doing it as described on the Chef website. It describes installing Chef Server on all machines. I was having problems with this and, through a quick search, found another site which details installing Chef Server on the main server and the Client software on the others. Not sure if this is correct.  However, I tried both ways.

I had a problem with one of the VPS machines and found this solution: Please add a server section for to /etc/opscode/private-chef.rb! It turns out the VPS did not have the hostname set up as a FQDN name. Fixing this resolved that problem.

I’ve set up the server and have tried creating users, however I get an error that Chef cannot connect to the Nginx server on port 443 on 127.0.0.1  I’m trying to figure out why. I’ve disabled SELinux as recommended and even added in specific firewall rules through iptables to try and allow connections. I can’t connect to port 443 on the Master server from my desktop either. Not sure what’s going on there.  I guess I can create users on the Master server, but not Client servers. It just worked now with the Master server. There must be some way to connect the clients to the server for user creation… or perhaps only the Master server has users..?

At the moment, the Master server seems to be up and working but cannot be contacted outside the VPS network. Not sure if I have to install some Chef WebUI application..?  One VPS has the client software installed but I haven’t found how to configure that to connect to the Master server yet. We’ll see how it goes.

Debian beats the pants off Ubuntu

Debian Logo

To aid in getting experience with Puppet Enterprise I wanted to set up a few computers in my home network to install and test Puppet on.

I have a MacBook Pro mid-2010 which I had not been using much. I had previously installed Windows 7 on it. I decided a few days ago that I would install a Linux distribution on my MacBook Pro (7,1) and use that as a Puppet Agent box.

As I have been using Ubuntu, I wanted to install this on my MacBook Pro laptop.  I had to install the rEFInd Boot Manager first to enable booting my USB key with an Ubuntu ISO on it for installation. It also lets me boot the final installation of Linux.

Read more »