Skip to content

Instantly share code, notes, and snippets.

View peterhallen's full-sized avatar

Peter Hallen peterhallen

  • Charleston, SC
View GitHub Profile
@croaker
croaker / chef_solo_bootstrap.sh
Created April 20, 2012 10:43 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo on Ubuntu or Amazon AMIs
#!/usr/bin/env bash
RUBY_VERSION=1.9.3-p194
if [ -n `which yum` ]
then
# This is necessary for the Amazon Linux AMI
perl -pi -e 's/^(Defaults\s+secure_path.*)$/\1:\/usr\/local\/bin:\/usr\/local\/sbin/g' /etc/sudoers
yum update -y
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel \