Skip to content

Instantly share code, notes, and snippets.

@kaichen
Forked from ryanb/chef_solo_bootstrap.sh
Created August 30, 2012 01:47
Show Gist options
  • Save kaichen/3521559 to your computer and use it in GitHub Desktop.
Save kaichen/3521559 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget http://ruby.taobao.org/mirrors/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194/
./configure --prefix=/usr/local --disable-install-rdoc
make
make install
gem source -r http://rubygems.org/
gem source -a http://ruby.taobao.org
gem install chef ruby-shadow --no-ri --no-rdoc
mkdir -p /var/chef
cd /var/chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment