Created
April 20, 2014 05:46
-
-
Save hSATAC/11106132 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 | |
apt-get install --yes lsb-release | |
DISTRIB_CODENAME=$(lsb_release --codename --short) | |
DEB="puppetlabs-release-${DISTRIB_CODENAME}.deb" | |
DEB_PROVIDES="/etc/apt/sources.list.d/puppetlabs.list" # Assume that this file's existence means we have the Puppet Labs repo added | |
if [ ! -e $DEB_PROVIDES ] | |
then | |
# Print statement useful for debugging, but automated runs of this will interpret any output as an error | |
# print "Could not find $DEB_PROVIDES - fetching and installing $DEB" | |
wget -q http://apt.puppetlabs.com/$DEB | |
sudo dpkg -i $DEB | |
fi | |
sudo apt-get update | |
sudo apt-get install --yes puppet | |
# If you want to lock to specific puppet version, use follow lines: | |
#sudo apt-get install --yes puppet-common=3.4.3-1puppetlabs1 | |
#sudo apt-get install --yes puppet=3.4.3-1puppetlabs1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment