This is a chef-solo repo. I haven't tried it with client/server.
Until I figure out now to get Roles working, we have one node.json that sets up a machine to be like itdoesnothing.com
Create a new EC2 instance using AMI: ami-ad7e2ee8 (Ubuntu 10.10 Maverick EBS boot 32bit)
Log into the machine
sudo -s apt-get update
I had some issues with chef using the wrong rubygems when both the system version and REE were installed,
apt-get install build-essential zlib1g-dev libssl-dev libreadline5-dev git # All required for REE cd /tmp curl -O http://files.rubyforge.vm.bytemark.co.uk/emm-ruby/ruby-enterprise-1.8.7-2010.02.tar.gz tar xvfz ruby-enterprise-1.8.7-2010.02.tar.gz ruby-enterprise-1.8.7-2010.02/installer --no-dev-docs
ln -s ruby-enterprise-1.8.7-2010.02 /opt/ruby-enterprise PATH=/opt/ruby-enterprise/bin:$PATH
gem install chef --no-rdoc --no-ri git clone git@github.com:sampierson/chef-repo.git cd chef-repo git submodule update --init # to get cookbooks. TODO: figure out how to do this during clone chef-solo -c solo.rb -j node.json
cd itdoesnothing cap deploy:setup
chmod -R g+s /u/apps
cap deploy cap deploy:migrate