Skip to content

Instantly share code, notes, and snippets.

@cmattoon
Created June 2, 2017 19:08
Show Gist options
  • Save cmattoon/7ee62b2fb8bdf74885d254c05324d3c2 to your computer and use it in GitHub Desktop.
Save cmattoon/7ee62b2fb8bdf74885d254c05324d3c2 to your computer and use it in GitHub Desktop.
Script to Install Puppet on CentOS 7
#!/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