Last active
March 30, 2020 05:42
-
-
Save jessereynolds/750bd4394c42f3ab06dad35a95793073 to your computer and use it in GitHub Desktop.
Puppet Enterprise download script
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 | |
# find the latest version here: https://puppet.com/misc/version-history | |
# release notes: https://puppet.com/docs/pe/latest/release_notes_pe.html | |
# this script: https://gist.github.com/jessereynolds/750bd4394c42f3ab06dad35a95793073 | |
#version="2019.5.0" | |
version="latest" | |
#dist="ubuntu" | |
#rel="18.04" | |
#arch="amd64" | |
dist="el" | |
rel="7" | |
arch="x86_64" | |
platform="${dist}-${rel}-${arch}" | |
filename="puppet-enterprise-${version}-${platform}.tar.gz" | |
url="https://pm.puppet.com/cgi-bin/download.cgi?arch=${arch}&dist=${dist}&rel=${rel}&ver=${version}" | |
echo "url: ${url}" | |
echo "pwd: `pwd`" | |
echo "writing to: ${filename}" | |
curl -L -o ${filename} "${url}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also: https://github.com/glarizza/pe_curl_requests/blob/master/installer/download_pe_tarball.sh and https://gist.github.com/hsnodgrass/9527636c1b499e19c9c250954e1a78eb