Skip to content

Instantly share code, notes, and snippets.

@bluemont
Forked from ijonas/chef_solo_bootstrap.sh
Created June 30, 2012 06:08
Show Gist options
  • Save bluemont/3022560 to your computer and use it in GitHub Desktop.
Save bluemont/3022560 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y upgrade
# a reboot after is often a good idea
sudo apt-get -y install build-essential libffi-dev libgdbm-dev libreadline6-dev libssl-dev libxml2 libxml2-dev libxslt-dev libyaml-dev ncurses-dev zlib1g zlib1g-dev
RUBY_VERSION="1.9.3-p194"
mkdir ~/src
cd ~/src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-${RUBY_VERSION}.tar.gz
tar -xvzf ruby-${RUBY_VERSION}.tar.gz
cd ruby-${RUBY_VERSION}/
./configure --prefix=/usr/local
make
# make test
sudo make install
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