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

contrib: setup_templates: clean up the cloud-init configuration #5

Merged
merged 5 commits into from
Aug 27, 2024

Conversation

hnez
Copy link
Collaborator

@hnez hnez commented Aug 22, 2024

This cleans up various aspects of the default cloud-init configuration.

I will leave this as a draft until I get around to test it.

hnez added 3 commits August 22, 2024 09:08
The cloud-init scripts should be kept as minimalistic as possible,
because they are (compared to jobs run via GitHub) hard to debug.
The ssh service is not reachable from the outside,
due to the NAT-ing done by qemu slirp/user networking.
We can thus leave the decision to disable/uninstall ssh to the setup code
in the jobs.
The service ordering should be handled by systemd alone and not via some
hacky wait scripts as well.
If this breaks for some reason we need to fix it properly.
This results in the file being written unconditionally on every boot.
This also means that the file in cloud-init and the one in the machine
will not become out of sync.
The drawback is that we need to systemctl deamon-reload on every boot now,
which should however be okay performance-wise.
@hnez hnez self-assigned this Aug 22, 2024
hnez added 2 commits August 27, 2024 19:50
This results in the file being written unconditionally on every boot.
This also means that the file in cloud-init and the one in the machine
will not become out of sync.
The drawback is that we need to systemctl deamon-reload on every boot now,
which should however be okay performance-wise.
This feels a bit cleaner than calling mount in a service unit.
@hnez hnez force-pushed the topic/cloud-init-cleanup branch from 9ff115c to 2fc597f Compare August 27, 2024 17:50
@hnez hnez marked this pull request as ready for review August 27, 2024 17:51
@hnez hnez merged commit 1b5fa6f into main Aug 27, 2024
3 checks passed
@hnez hnez deleted the topic/cloud-init-cleanup branch August 27, 2024 17:52
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.

1 participant