It happens — you’re on a server that just can’t be upgraded any further, and you need more resources.  Or, you need to backup a Chef server.  Or, you need to setup a QA instance.  Or, you need to finally migrate from Chef 10 to Chef 11.  Or, you have […]

Migrating from one Chef server to another

Just about every significant aspect of Chef Server is configurable, although the defaults are okay for most.  The configuration options are documented at http://docs.opscode.com/config_rb_chef_server_optional_settings.html . Note, though, that the chef-server.rb described in the article was nowhere to be found on my server.  Instead, after some digging, I found what I needed at [crayon-58fd1df2264ed633223486-i/] . […]

Change Chef Server settings after installation

Everyone loves speed.  That includes your site’s visitors.  If you run a WordPress site, WP Super Cache is a pretty cool plugin that generates static files from your dynamic content, and serves those to your users instead of dynamically generating the same page for each user, which can really put your database […]

Use nginx as a reverse proxy to speed up your ...

If you need a hands-off way to update your Ubuntu or Debian servers, Chef’s Knife utility provides an easy way to do this (and parallelize it!). The following will update your packages in an unattended way.  In other words, all prompts will be suppressed, and defaults will be accepted (e.g. […]

Update your Ubuntu/Debian servers with Chef

autofs isn’t so bad, but when it’s been a while, it can make you pull your hair out.  Been there, done that.  Now here’s the result of that for you to benefit from.  This Chef recipe simply installs autofs and its dependencies, and sets up a mountpoint called /media that’s […]

Using autofs with a NAS in Chef

I love OpenVZ, but I was unfortunately never able to successfully install Chef Server in a container; I’ve always had to try it out on KVM or Xen instead. The culprit was the procps package, which refused to install as a dependency. After looking into it, it turns out that […]

Installing Chef Server in an OpenVZ Container

I love Apache. I love nginx. I love them when they’re alone, and I love them when they’re together. But when they’re together, sometimes they don’t play nice. When behind a proxy, Apache will use the proxy’s IP address in logs and everywhere else. Unless your application knows to look […]

Use X-Forwarded-For in Apache when behind a proxy

Vagrant is awesome, but there are times where you might need to specify redundant/alternative URLs in a Vagrantfile.  This could be a failover type scenario, although in my case, I needed it to give external developers access to our Vagrantbox, which we made a copy of on the interwebs.  The […]

Specify multiple redundant Vagrant box URLs

bbcp is becoming a hot contender to rsync.  Unfortunately, it’s not available by default in Ubuntu 12.04.  The steps below will get you going with it.  Note that bbcp needs to be installed at both ends of a transfer. [crayon-58fd1df2278a6437532265/]  

Install bbcp on Ubuntu

In this post, I will show you how to get started with the open-source version of Chef using knife. Prerequisites: A working Chef server An admin account on the Chef server A supported version of Linux (this might work on OS X too, but I haven’t tested it) We’ll start […]

Chef — knife super quick start