cloud-init
cloud-init copied to clipboard
Enable Amazon Linux to yum_add_repo and ca_certs.
Proposed Commit Message
<feat>(amazon): Modify configs for better Amazon Linux support.
Change only applies to Amazon Linux distro and EC2.
- Adds yum-add-repo module to amazon distro.
- Adds ca-cert module to amazon distro.
Additional Context
I would like to make better support for Amazon Linux (AL) in cloud-init. Please review existing config from AL into cloud-init.
Test Steps
ran test test_cc_yum_add_repo.py and test_cc_ca_certs.py
joe@7cf34dd47854 cloud-init % pytest -vv tests/unittests/config/test_cc_yum_add_repo.py
...
=============================================================================================== 12 passed in 0.08s ================================================================================================
joe@7cf34dd47854 cloud-init % pytest -vv tests/unittests/config/test_cc_ca_certs.py
...
=============================================================================================== 270 passed in 0.51s ===============================================================================================
Merge type
- [x] Squash merge using "Proposed Commit Message"
- [ ] Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)
Please review existing config from AL into cloud-init.
Is this a downstream config? Can you please link it?
This is a patch file provided in amazon linux 2023 to modify the source and it's been used since 2022. Amazon Linux does not publish package source files like other distros so I don't have a link. Thank you.