Skip to content

Commit

Permalink
(PE-38404) Update script for AL2 (again)
Browse files Browse the repository at this point in the history
AL2 x86_64 was broken when AL2 aarch64 support was added. Pull in latest
puppet_agent module and regenerate script.
  • Loading branch information
joshcooper committed Jun 27, 2024
1 parent 95f53aa commit a4111e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,6 @@ case $platform in
"SLES")
platform_version=$major_version
;;
"Amzn"|"Amazon Linux")
case $platform_version in
"2") platform_version="2";;
esac
;;
esac

# Find which version of puppet is currently installed if any
Expand Down Expand Up @@ -897,8 +892,11 @@ case $platform in
info "Amazon platform! Lets get you an RPM..."
filetype="rpm"
platform_package="el"
# For Amazon Linux 2023 and onwards we can use the 'amazon' packages created instead of 'el' packages
if (( $platform_version >= 2 )); then
arch="$(uname -p)"
# Install amazon packages on AL2 (only aarch64) and 2003 and up (all arch)
if [[ $platform_version == 2 && $arch == 'x86_64' ]]; then
platform_version="7"
elif (( platform_version == 2 || platform_version >= 2023 )); then
platform_package="amazon"
fi
filename="${collection}-release-${platform_package}-${platform_version}.noarch.rpm"
Expand Down

0 comments on commit a4111e3

Please sign in to comment.