Skip to content

Commit

Permalink
(MODULES-10897) Fix GPG key typo
Browse files Browse the repository at this point in the history
Accidentaly removed the RPM part of the filename when getting the GPG
key for SLES in the install task. This commit adds it back and imports
both keys when installing puppet_agent on SLES, for compatibility
reasons.
  • Loading branch information
GabrielNagy committed Jan 13, 2021
1 parent 4ac5ea6 commit 956a958
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tasks/install_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,12 @@ info "Downloading Puppet $version for ${platform}..."
case $platform in
"SLES")
info "SLES platform! Lets get you an RPM..."
gpg_key="${tmp_dir}/RPM-GPG-KEY-puppet-20250406"
do_download "https://yum.puppet.com/GPG-KEY-puppet-20250406" "$gpg_key"
rpm --import "$gpg_key"
rm -f "$gpg_key"
for key in "puppet" "puppet-20250406"; do
gpg_key="${tmp_dir}/RPM-GPG-KEY-${key}"
do_download "https://yum.puppet.com/RPM-GPG-KEY-${key}" "$gpg_key"
rpm --import "$gpg_key"
rm -f "$gpg_key"
done
filetype="noarch.rpm"
filename="${collection}-release-sles-${platform_version}.noarch.rpm"
download_url="${yum_source}/${filename}"
Expand Down

0 comments on commit 956a958

Please sign in to comment.