Skip to content

Instantly share code, notes, and snippets.

@gnufied
Created May 24, 2012 08:58
Show Gist options
  • Save gnufied/2780317 to your computer and use it in GitHub Desktop.
Save gnufied/2780317 to your computer and use it in GitHub Desktop.
deploy.sh
#!/usr/bin/env bash
apt-add-repository -y ppa:brightbox/ruby-ng
apt-get -y update
apt-get -y install build-essential
apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
apt-get -y install ruby1.9.3 ruby-switch
ruby-switch --set ruby1.9.1
gem install chef ruby-shadow --no-ri --no-rdoc
mkdir /var/chef
cd /var/chef
mkdir -p cookbooks/main/recipes
chown -R ubuntu:ubuntu /var/chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment