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.

Revisions

  1. damokles created this gist Apr 2, 2011.
    15 changes: 15 additions & 0 deletions puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/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