Created
February 3, 2010 16:34
-
-
Save choonkeat/293742 to your computer and use it in GitHub Desktop.
This file contains 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
# Usage: ssh root@server "`cat rambo.puppet`" | |
# | |
# dependencies | |
which yum 2> /dev/null && yum -y install facter puppet # it is that simple | |
which apt-get 2> /dev/null && apt-get -y install wget ruby ruby1.8 libruby1.8 && apt-get -y autoremove | |
which facter && which puppet && exit 0 # proceed if not installed | |
which ruby || exit 1 # abort if without ruby | |
# | |
# let's go | |
mkdir install-puppet | |
cd install-puppet | |
# | |
# facter | |
rm -rf facter-* | |
wget http://reductivelabs.com/downloads/facter/facter-latest.tgz | |
tar xzvf facter-latest.tgz | |
cd facter-* && ruby install.rb && cd .. | |
# | |
# puppet itself | |
rm -rf puppet-* | |
wget http://reductivelabs.com/downloads/puppet/puppet-latest.tgz | |
tar xzvf puppet-latest.tgz | |
cd puppet-* && ruby install.rb && cd .. | |
# | |
# done | |
which facter && which puppet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment