Skip to content

Instantly share code, notes, and snippets.

@dysinger
Created May 13, 2011 08:27
Show Gist options
  • Save dysinger/970209 to your computer and use it in GitHub Desktop.
Save dysinger/970209 to your computer and use it in GitHub Desktop.
vagrant/ec2 boostrap script
#!/bin/bash -ex
if [ ! -f /usr/bin/chef-solo ]; then
apt-get update
apt-get -y upgrade
apt-get -y install ruby ruby-dev libopenssl-ruby rdoc ri irb \
build-essential wget ssl-cert
cd /tmp
wget -O- http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.tgz \
| tar oxz
cd rubygems-1.7.2
ruby setup.rb --no-format-executable
gem install chef --no-ri --no-rdoc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment