Skip to content

Instantly share code, notes, and snippets.

@andrew-kurin
Created February 4, 2012 12:23
Show Gist options
  • Select an option

  • Save andrew-kurin/1737523 to your computer and use it in GitHub Desktop.

Select an option

Save andrew-kurin/1737523 to your computer and use it in GitHub Desktop.
Install puppet via Gems/RVM on Debian (run as root)
sudo bash < <(curl https://raw.github.com/gist/1737523/puppet-install.sh )
#!/bin/sh
aptitude install -y build-essential openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev \
libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf \
libc6-dev ncurses-dev automake libtool bison subversion sudo
# install rvm into /usr/local/rvm/
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
source /etc/profile.d/rvm.sh
rvm install 1.8.7
rvm alias create default `rvm list strings`
rvm default
rvm tools rvm-env ruby bash
echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
echo "rvm default" >> ~/.bashrc
gem install puppet
# create puppet user, otherwise 'puppet apply' wouldn't work
groupadd puppet
useradd -g puppet puppet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment