Skip to content
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

Add Alpine Linux support. #535

Merged
merged 19 commits into from
Aug 19, 2020

Conversation

dermotbradley
Copy link
Contributor

Add new module cc_apk_configure for creating Alpine /etc/apk/repositories file.
Modify cc_ca_certs, cc_ntp, cc_power_state_change, and cc_resolv_conf for Alpine.
Add Alpine template files for Chrony and Busybox NTP support.
Add Alpine template file for /etc/hosts.

Add new module cc_apk_configure for creating Alpine /etc/apk/repositories file.
Modify cc_ca_certs, cc_ntp, cc_power_state_change, and cc_resolv_conf for
Alpine.
Add Alpine template files for Chrony and Busybox NTP support.
Add Alpine template file for /etc/hosts.
@dermotbradley
Copy link
Contributor Author

dermotbradley commented Aug 14, 2020

Hi @OddBloke, I could do with some advice/help here with the test_handler_apk_configure.py.

Thanks to help from @raharper I fixed the test_handler.

Copy link
Collaborator

@raharper raharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is a really nice PR and great addition to cloud-init.

cloudinit/config/cc_ca_certs.py Outdated Show resolved Hide resolved
tests/unittests/test_handler/test_handler_apk_configure.py Outdated Show resolved Hide resolved
cloudinit/config/cc_apk_configure.py Outdated Show resolved Hide resolved
cloudinit/config/cc_apk_configure.py Outdated Show resolved Hide resolved
cloudinit/config/cc_apk_configure.py Outdated Show resolved Hide resolved
cloudinit/config/cc_ntp.py Outdated Show resolved Hide resolved
cloudinit/config/cc_power_state_change.py Outdated Show resolved Hide resolved
cloudinit/config/cc_power_state_change.py Outdated Show resolved Hide resolved
cloudinit/config/cc_power_state_change.py Outdated Show resolved Hide resolved
cloudinit/config/cc_power_state_change.py Outdated Show resolved Hide resolved
@dermotbradley dermotbradley requested a review from raharper August 17, 2020 14:43
Copy link
Collaborator

@raharper raharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank for updating this PR. I've a few more bits of feedback on updating the unittests.

@dermotbradley dermotbradley requested a review from raharper August 19, 2020 02:35
Copy link
Collaborator

@raharper raharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very close; just a few more spots we can clean up.

cloudinit/config/cc_apk_configure.py Outdated Show resolved Hide resolved
cloudinit/config/cc_apk_configure.py Outdated Show resolved Hide resolved
cloudinit/config/cc_apk_configure.py Outdated Show resolved Hide resolved
cloudinit/config/cc_ca_certs.py Outdated Show resolved Hide resolved
cloudinit/config/cc_ntp.py Outdated Show resolved Hide resolved
cloudinit/config/cc_power_state_change.py Outdated Show resolved Hide resolved
cloudinit/config/cc_ntp.py Outdated Show resolved Hide resolved
@dermotbradley dermotbradley requested a review from raharper August 19, 2020 20:33
Copy link
Collaborator

@raharper raharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@raharper raharper merged commit 79a8ce7 into canonical:master Aug 19, 2020
@dermotbradley dermotbradley deleted the add-alpine-linux-support branch November 18, 2020 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants