Skip to content

Instantly share code, notes, and snippets.

@ehazlett
Created June 4, 2012 07:05
Show Gist options
  • Save ehazlett/2866843 to your computer and use it in GitHub Desktop.
Save ehazlett/2866843 to your computer and use it in GitHub Desktop.
Install Puppet Agent
#!/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