Skip to content

Instantly share code, notes, and snippets.

@thillerson
Created September 16, 2010 22:19
Show Gist options
  • Save thillerson/583272 to your computer and use it in GitHub Desktop.
Save thillerson/583272 to your computer and use it in GitHub Desktop.
# 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 scala
# To upgrade scala:
http://jkyamog.blogspot.com/2010/08/more-on-scala.html
# To install sbt:
http://code.google.com/p/simple-build-tool/wiki/Setup
cd /tmp
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.7.tgz
tar zxf rubygems-1.3.7.tgz
cd rubygems-1.3.7
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 zip --no-ri --no-rdoc
sudo mkdir -p /etc/chef-solo
sudo chown `whoami` /etc/chef-solo
cd /etc/chef-solo
git clone http://github.com/thillerson/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/583178
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment