Created
May 13, 2011 08:27
-
-
Save dysinger/970209 to your computer and use it in GitHub Desktop.
vagrant/ec2 boostrap script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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