Created
February 4, 2012 12:23
-
-
Save zen4ever/1737523 to your computer and use it in GitHub Desktop.
Install puppet via Gems/RVM on Debian (run as root)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo bash < <(curl https://raw.github.com/gist/1737523/puppet-install.sh ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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