Last active
August 29, 2015 14:08
-
-
Save zackbraksa/5a4c7c1f7355dbc882e7 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
#!/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