-
Notifications
You must be signed in to change notification settings - Fork 194
(PA-6677) Restore AL2 x86_64 install task and manifest #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
08b9f34
Stub os.release.major to return a String
joshcooper 610b6da
(PA-6677) Restore support for AL2 x86_64 in manifests
joshcooper 8f13676
(PA-6677) Restore support for AL2 x86_64 install_shell task
joshcooper 3f9ea74
Add AmazonLinux to metadata.json
joshcooper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,9 @@ | |
}, | ||
{ | ||
"operatingsystem": "Rocky" | ||
}, | ||
{ | ||
"operatingsystem": "AmazonLinux" | ||
} | ||
], | ||
"requirements": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,11 +284,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 | ||
|
@@ -662,8 +657,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 == 2023 || $platform_version == 2 )); then | ||
arch="$(uname -p)" | ||
# Install amazon packages on AL2 (only aarch64) and 2003 and up (all arch) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit, but this says 2003 instead of 2023. |
||
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" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.