Skip to content

Instantly share code, notes, and snippets.

@unusorin
Forked from ehazlett/puppet-agent-install.sh
Created July 3, 2014 17:01
Show Gist options
  • Save unusorin/74eadb4096c2d3ed3dc1 to your computer and use it in GitHub Desktop.
Save unusorin/74eadb4096c2d3ed3dc1 to your computer and use it in GitHub Desktop.
#!/bin/sh
AGENT_URL=http://puppetlabs.com/downloads/puppet/puppet-2.7.14.tar.gz
FACTER_URL=http://puppetlabs.com/downloads/facter/facter-1.6.9.tar.gz
apt-get update
apt-get -y install ruby rake rubygems
cd /tmp
wget ${FACTER_URL} -O /tmp/facter.tar.gz
tar zxf facter.tar.gz
cd facter-*
ruby install.rb
cd /tmp
wget ${AGENT_URL} -O /tmp/puppet.tar.gz
tar zxf puppet.tar.gz
cd puppet-*
ruby install.rb
rm -rf /tmp/facter.tar.gz
rm -rf /tmp/puppet.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment