Skip to content

Instantly share code, notes, and snippets.

@yaoyi
Forked from kaichen/chef_solo_bootstrap.sh
Last active December 19, 2015 11:19
Show Gist options
  • Save yaoyi/5947005 to your computer and use it in GitHub Desktop.
Save yaoyi/5947005 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
cd /tmp
wget http://ruby.taobao.org/mirrors/ruby/1.9/ruby-1.9.3-p429.tar.gz
tar -xvzf ruby-1.9.3-p429.tar.gz
cd ruby-1.9.3-p429/
./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