Skip to content

Instantly share code, notes, and snippets.

@ravage
Created April 24, 2012 00:25
Show Gist options
  • Save ravage/2474887 to your computer and use it in GitHub Desktop.
Save ravage/2474887 to your computer and use it in GitHub Desktop.
Debian chef-solo bootstrap
http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
#!/usr/bin/env bash
RUBY_VERSION=ruby-1.9.3-p194
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/$RUBY_VERSION.tar.bz2
tar -jxvf $RUBY_VERSION.tar.bz2
cd $RUBY_VERSION
./configure --prefix=/usr/local
make
make install
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc
gem install chef ruby-shadow
rm -rf /tmp/$RUBY_VERSION*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment