# assuming a user peeps, who is a sudoer, and has a key set up for the repo in unfuddle. echo "effectiveui.unfuddle.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0bTJbUZRCwOfGnWEsWYo1DgJushjeEOOpiYH+T7XFdUUDVUy9M63StNlD2L/v8EDNWj6JFq7qaI4alu7fJqV/eSNLBnyG6mQH0ciB1TEYYw/zv8FyKp8tHg7hBacRcaQw7Wyz9B+St9yKRY4IY9/oeJaxOiXZuVK6lmjnnl3NZoLK8XNhN75CnCr9hYVwMrwLUaDNFxv7i5TUOSamXmDAdEft9hoV7rT9tE5V9GMoXM3fP0Jhs/lDFcA37hkAu1oqYYUcULwDdM+nZmLZcMcfSyCtMXEihE7MGOCyb5OEwHAP4lsmxQMA7S684TFUrBYzXNdR1i+ztWR1OFdN1tAYw==" >> ~/.ssh/known_hosts sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list # Pause for a sudo sudo apt-get update sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget curl ssl-cert git-core rake librspec-ruby libxml-ruby thin couchdb zlib1g-dev libxml2-dev emacs cd /tmp wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz tar zxf rubygems-1.3.5.tgz cd rubygems-1.3.5 sudo ruby setup.rb sudo ln -sfv /usr/bin/gem1.8 /usr/bin/gem sudo gem sources -a http://gems.opscode.com sudo gem sources -a http://gemcutter.org sudo gem install ohai chef json rails --no-ri --no-rdoc sudo mkdir -p /etc/chef-solo sudo chown `whoami` /etc/chef-solo cd /etc/chef-solo git clone https://github.com/effectiveui/cookbooks.git echo "file_cache_path \"/etc/chef-solo\"" > solo.rb echo "cookbook_path \"/etc/chef-solo/cookbooks\"" >> solo.rb # Create a file at /etc/chef-solo/node.json with the contents of: # http://gist.github.com/294104 # here's the work: sudo chef-solo -c solo.rb -j node.json # For some reason chef doesn't install the mysql gem for ruby-enterprise sudo ln -s /opt/ruby-enterprise/bin/gem /usr/bin/ree-gem sudo ree-gem install mysql