Last active
January 8, 2020 02:11
-
-
Save hsnodgrass/9527636c1b499e19c9c250954e1a78eb to your computer and use it in GitHub Desktop.
Install puppet enterprise master on CentOS 7
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 | |
wget --content-disposition 'https://pm.puppet.com/cgi-bin/download.cgi?dist=el&rel=7&arch=x86_64&ver=latest' | |
PACKAGE=$(ls ./ | grep puppet-enterprise-*.tar.gz) | |
tar -xf $PACKAGE | |
cd $(echo $PACKAGE | sed -e 's/.tar.gz//g') | |
if [ -z "$1" ]; then | |
source puppet-enterprise-installer | |
else | |
source puppet-enterprise-installer -c $1 | |
puppet agent -t | |
puppet agent -t | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also: https://gist.github.com/jessereynolds/750bd4394c42f3ab06dad35a95793073