Skip to content

Instantly share code, notes, and snippets.

@domtra
Created March 31, 2014 17:11
Show Gist options
  • Select an option

  • Save domtra/9897144 to your computer and use it in GitHub Desktop.

Select an option

Save domtra/9897144 to your computer and use it in GitHub Desktop.
apt-get update
apt-get -y upgrade
apt-get -y install build-essential zlib1g-dev libreadline-dev libssl-dev libcurl4-openssl-dev
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
echo '# rbenv setup' > /etc/profile.d/rbenv.sh
echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh
echo 'export PATH=\"$RBENV_ROOT/bin:$PATH\"' >> /etc/profile.d/rbenv.sh
echo 'eval \"$(rbenv init -)\"' >> /etc/profile.d/rbenv.sh
chmod +x /etc/profile.d/rbenv.sh
source /etc/profile.d/rbenv.sh
# Install ruby-build:
pushd /tmp
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
./install.sh
popd
# Install Ruby 2.0.0-p451:
rbenv install 2.0.0-p451
rbenv global 2.0.0-p451
# Rehash:
rbenv rehash
#env
gem update --system
gem install facter --no-ri --no-rdoc
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