Compare commits

...

1 Commits

  1. 7
      install.sh

7
install.sh

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
beginswith() { case $2 in "$1"*) true;; *) false;; esac; } beginswith() { case $2 in "$1"*) true;; *) false;; esac; }
function usage() function usage()
{ {
cat << HEREDOC cat << HEREDOC
@ -12,7 +12,7 @@ function usage()
-h, --help show this help message and exit -h, --help show this help message and exit
-v, --version VERSION install a specific puppet-agent version -v, --version VERSION install a specific puppet-agent version
-c, --collection COLLECTION install a specific puppet-agent collection (e.g. puppet7) -c, --collection COLLECTION install a specific puppet-agent collection (e.g. puppet7)
-n, --noop do a dry run, do not change any files
-n, --noop do a dry run, do not change any files
--cleanup remove the puppetlabs repository after installation finishes --cleanup remove the puppetlabs repository after installation finishes
HEREDOC HEREDOC
@ -807,7 +807,7 @@ info "Downloading Puppet $version for ${platform}..."
case $platform in case $platform in
"SLES") "SLES")
info "SLES platform! Lets get you an RPM..." info "SLES platform! Lets get you an RPM..."
if [[ $PT__noop != true ]]; then if [[ $PT__noop != true ]]; then
for key in "puppet" "puppet-20250406"; do for key in "puppet" "puppet-20250406"; do
gpg_key="${tmp_dir}/RPM-GPG-KEY-${key}" gpg_key="${tmp_dir}/RPM-GPG-KEY-${key}"
@ -884,6 +884,7 @@ case $platform in
"17.04") deb_codename="zesty";; "17.04") deb_codename="zesty";;
"18.04") deb_codename="bionic";; "18.04") deb_codename="bionic";;
"20.04") deb_codename="focal";; "20.04") deb_codename="focal";;
"22.04") deb_codename="focal";;
esac esac
filetype="deb" filetype="deb"
filename="${collection}-release-${deb_codename}.deb" filename="${collection}-release-${deb_codename}.deb"

Loading…
Cancel
Save