Skip to content

Instantly share code, notes, and snippets.

@rabidpraxis
Created April 11, 2012 22:14
Show Gist options
  • Save rabidpraxis/2363102 to your computer and use it in GitHub Desktop.
Save rabidpraxis/2363102 to your computer and use it in GitHub Desktop.
ec2-bootstrap
#!/bin/bash
set -e -x
#==============================================================================
# Initial Dependecies
#==============================================================================
sudo apt-get -y update
sudo apt-get -y install curl python-software-properties
sudo apt-add-repository ppa:brightbox/ruby-ng-experimental
sudo apt-get -y update
#==============================================================================
# Install Ruby
#==============================================================================
sudo apt-get -y install ruby rubygems ruby-switch
sudo apt-get -y install ruby1.9.3
sudo ruby-switch --set ruby1.9.1
#=== Install Chef ===========================================================
sudo gem install chef ruby-shadow --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment