Created
January 20, 2014 12:39
-
-
Save Wallsays/8519251 to your computer and use it in GitHub Desktop.
Bootstrap Ruby & Chef Solo for Ubuntu 12.04 LTS 64 bit
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
#!/usr/bin/env bash | |
apt-get -y update | |
# Install dependencies | |
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl | |
# Install Ruby 1.9.3 from source | |
wget ftp://ftp.ruby-lang.org/pub/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 | |
# Make | |
sudo make install | |
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc | |
sudo gem install bundler | |
# Install Chef | |
gem install chef ruby-shadow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment