Skip to content

Instantly share code, notes, and snippets.

@zackbraksa
Last active August 29, 2015 14:08
Show Gist options
  • Save zackbraksa/5a4c7c1f7355dbc882e7 to your computer and use it in GitHub Desktop.
Save zackbraksa/5a4c7c1f7355dbc882e7 to your computer and use it in GitHub Desktop.
#!/bin/bash
pink='\e[35m'
NC='\e[0m' # No Color
set -e
set -u
apt-get -y install wget
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
dpkg -i puppetlabs-release-precise.deb
# Install Puppet
echo "Installing Puppet..."
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install puppet >/dev/null
echo "Puppet installed!"
puppet resource service puppet ensure=running enable=true
mkdir -p /etc/facter/facts.d
puppet agent --enable
puppet agent -t
echo -e "SUCCESS"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment