Skip to content

Instantly share code, notes, and snippets.

@leitmedium
Created April 2, 2011 19:16
Show Gist options
  • Save leitmedium/899786 to your computer and use it in GitHub Desktop.
Save leitmedium/899786 to your computer and use it in GitHub Desktop.
#!/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