Created
April 2, 2011 19:16
-
-
Save leitmedium/899786 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
apt-get install irb libopenssl-ruby libreadline-ruby rdoc ri ruby ruby-dev | |
cd /usr/local/src | |
wget http://production.cf.rubygems.org/rubygems/rubygems-1.5.2.tgz | |
tar -xzf rubygems-1.5.2.tgz | |
cd rubygems-1.5.2 | |
ruby setup.rb | |
update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.8 1 | |
gem update --system | |
gem install puppet --no-ri --no-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment