A Chef Solo kitchen for setting up a Node.js, Nginx, and MongoDB development server.
Ruby and RubyGems
# Red Hat / CentOS - http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+CentOS
yum install ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode -y
# Ubuntu / Debian - http://wiki.opscode.com/display/chef/Installing+Chef+Client+on+Ubuntu+or+Debian
apt-get install ruby ruby-dev libopenssl-ruby rdoc ri irb build-essential wget ssl-cert curl -y
gem install chef --no-ri --no-rdoc
gem install knife-solo --no-ri --no-rdoc
gem install librarian --no-ri --no-rdoc
git clone git://github.com/nickbarth/Development-Server-Kitchen.git
librarian-chef install
# vim ~/.ssh/config
Host server
User root
Hostname x
port 22
# setup password-less ssh logins
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub root@server
knife solo bootstrap server
ssh server
cd /tmp/chef-solo/
chef-solo -c /tmp/chef-solo/solo.rb -j /tmp/chef-solo/nodes/server.json
You should now have a fully functional server setup with all specified cookbooks.