Skip to content

Commit

Permalink
(PA-6276) Update puppet_agent module task acceptance for AL2
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkarsale committed Jun 6, 2024
1 parent c4999d4 commit bf467db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion task_spec/spec/acceptance/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def latest_platform_list
el-9-aarch64|
ubuntu-22\.04-aarch64|
amazon-2023|
amazon-2|
osx-14|
debian-12|
debian-11-aarch64|
Expand Down Expand Up @@ -104,7 +105,7 @@ def latest_platform_list
# true
# end
multiple_puppet7_versions = case target_platform
when %r{osx-13|osx-14|el-9-aarch64|debian-11-aarch64|el-9-ppc64le}
when %r{osx-13|osx-14|el-9-aarch64|debian-11-aarch64|el-9-ppc64le|amazon-2}
false
else
true
Expand Down
4 changes: 2 additions & 2 deletions tasks/install_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ case $platform in
;;
"Amzn"|"Amazon Linux")
case $platform_version in
"2") platform_version="7";;
"2") platform_version="2";;
esac
;;
esac
Expand Down Expand Up @@ -663,7 +663,7 @@ case $platform in
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 >= 2023 )); then
if (( $platform_version == 2023 || $platform_version == 2 )); then
platform_package="amazon"
fi
filename="${collection}-release-${platform_package}-${platform_version}.noarch.rpm"
Expand Down

0 comments on commit bf467db

Please sign in to comment.