Skip to content

Commit

Permalink
Merge pull request #25 from puppetlabs/amazon-2-aarch64
Browse files Browse the repository at this point in the history
(PE-38404) Update script for AL2 (again)
  • Loading branch information
mhashizume authored Jun 27, 2024
2 parents 95f53aa + 9d3dd9f commit c7968cf
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 2023 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 c7968cf

Please sign in to comment.