Skip to content

Instantly share code, notes, and snippets.

@jessereynolds
Last active March 30, 2020 05:42
Show Gist options
  • Save jessereynolds/750bd4394c42f3ab06dad35a95793073 to your computer and use it in GitHub Desktop.
Save jessereynolds/750bd4394c42f3ab06dad35a95793073 to your computer and use it in GitHub Desktop.
Puppet Enterprise download script
#!/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}"