Created
June 2, 2017 19:08
-
-
Save cmattoon/7ee62b2fb8bdf74885d254c05324d3c2 to your computer and use it in GitHub Desktop.
Script to Install Puppet 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 | |
# Installs Puppet on CentOS 7 | |
# @todo - check GPG key | |
RPM=$(which rpm) | |
CENTOS_REPO_URL="https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm" | |
GPG_PUBKEY="http://pool.sks-keyservers.net:11371/pks/lookup?op=get&search=0x1054B7A24BD6EC30" | |
function install_centos_repo() { | |
$RPM -ivh $CENTOS_REPO_URL | |
} | |
function install_puppet_agent() { | |
install_centos_repo | |
yum install -y puppet | |
} | |
install_puppet_agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment