Skip to content

Instantly share code, notes, and snippets.

@zen4ever
Created February 4, 2012 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zen4ever/1737523 to your computer and use it in GitHub Desktop.
Save zen4ever/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 libreadline-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
# install libshadow if we want to manage user passwords as well
gem install libshadow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment