Last active
December 17, 2015 12:19
-
-
Save devopsmariocom/5608710 to your computer and use it in GitHub Desktop.
Generic Puppet Install
This file contains hidden or 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 | |
# | |
# This is the installation script for puppet. | |
# | |
# Install Puppet by running this command: | |
# curl -L http://git.io/w3bB5A | sh | |
# | |
# Detect Os | |
DETECT_SCRIPT_URL="https://gist.github.com/elmariofredo/5607945/raw/12a55341053a8dc2a7bdd5627c4616646ba10197/detect.sh" | |
os=$(curl -s $DETECT_SCRIPT_URL | sh) | |
echo "Os: ${os}" | |
# Install puppet | |
if [ "$os" = "Ubuntu" ];then | |
sudo wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb | |
sudo dpkg -i puppetlabs-release-precise.deb | |
sudo rm puppetlabs-release-precise.deb | |
sudo apt-get update | |
sudo apt-get -y install puppet | |
sed -i s/START=no/START=yes/g /etc/default/puppet | |
sudo puppet resource service puppet ensure=running enable=true | |
#sudo apt-get install puppetmaster | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment