-
Notifications
You must be signed in to change notification settings - Fork 109
[POC] Add support for Rocky Linux 8 #2324
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
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2324 +/- ##
========================================
Coverage 76.06% 76.06%
========================================
Files 13 13
Lines 1876 1876
========================================
Hits 1427 1427
Misses 449 449
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
38c6650 to
6cb57a8
Compare
e912b14 to
d859272
Compare
61bf33e to
fdc9339
Compare
|
TODO verify if there are "redhat" conditions in the chefspec and inspec tests that must be converted to rocky. (e.g. os_type_spec is missing rocky case). |
Used the new utility `os-resources.py` to create new resources for rocky linux, starting from redhat8 resources. Manually modified: * efa -> Replaced RHEL with Rocky Linux in log messages * lustre -> Replaced RHEL with Rocky Linux in log messages * users --> Replaced ec2-user with rocky * os_type --> Replaced rhel with rocky * install_packages --> Removed postgresql packages Removed redhat_on_docker condition from: * stunnel * system_authentication * efa Signed-off-by: Enrico Usai <usai@amazon.com>
* platform_url_component should point to the same of rhel Signed-off-by: Enrico Usai <usai@amazon.com>
Copied from RedHat files Signed-off-by: Enrico Usai <usai@amazon.com>
Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Rocky Linux official AMI * `kernel_release` version took from an EC2 Rocky Linux instance * username `rocky` found in kitchen-ec2 driver documentation. Added Rocky Linux to kitchen tests hooks ### References * https://hub.docker.com/r/dokken/rockylinux-8 * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Signed-off-by: Enrico Usai <usai@amazon.com>
Signed-off-by: Enrico Usai <usai@amazon.com>
Signed-off-by: Enrico Usai <usai@amazon.com>
Needed by hwloc-devel blas-devel libedit-devel and glibc-static packages Signed-off-by: Enrico Usai <usai@amazon.com>
This package conflicts by design with `coreutils-single`. `coreutils-single` cannot be removed because related to `sudo`. This change permits the install_package test to be executed on docker. Signed-off-by: Enrico Usai <usai@amazon.com>
Define os_properties for rocky linux Signed-off-by: Enrico Usai <usai@amazon.com>
Signed-off-by: Enrico Usai <usai@amazon.com>
Signed-off-by: Enrico Usai <usai@amazon.com>
Signed-off-by: Enrico Usai <usai@amazon.com>
fdc9339 to
6da2ce4
Compare
| ------ | ||
|
|
||
| **ENHANCEMENTS** | ||
| - Add support for Rocky Linux 8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am approving this PR as I will be making changes in the next PR
Description of changes
Used new utility
os-resources.pyintroduced as part of #2328 to create new resources for rocky linux, starting from redhat8 resources.Manually modified:
Removed redhat_on_docker condition from:
Relevant fixes to the code:
platform_url_componentshould point to the same of rhelTests
kernel_releaseversion took from an EC2 Rocky Linux instancerockyfound in kitchen-ec2 driver documentation.coreutils-single.coreutils-singlecannot be removed because related tosudo.References