Created
April 24, 2012 00:25
-
-
Save ravage/2474887 to your computer and use it in GitHub Desktop.
Debian chef-solo bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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