summaryrefslogtreecommitdiff
path: root/src/cloudinit.rs
AgeCommit message (Collapse)AuthorFilesLines
2022-11-05refactor: move the cloud init Python script to a separate fileLars Wirzenius1-92/+1
This required adding a build.rs to generate a Rust source from the Python file. Sponsored-by: author
2022-11-05fix: drop unnecessary borrowLars Wirzenius1-1/+1
Sponsored-by: author
2022-10-09Revert "refactor and more: move Python script for cloud-init out of Rust"Lars Wirzenius1-1/+92
This reverts commit 36b2ebd1643833700e57c51523d8c9c66f3d0034.
2022-10-06refactor and more: move Python script for cloud-init out of RustLars Wirzenius1-92/+1
Also, change it muchly to be more easily maintainable, and to use filenames compatible with the sshd role in my debian-ansible collection. Sponsored-by: author
2022-09-09chore: use unwrap_or instead of more complicated structureLars Wirzenius1-2/+2
Sponsored-by: author
2022-04-29feat: optionally turn off authorized keys support in SSH serverLars Wirzenius1-0/+6
If the specification has "allow_authorized_keys: false" (possibly from new config setting "default_allow_authorized_keys"), the SSH server configuration will tell the server to not consult a user's authorized keys file at all. Sponsored-by: author
2022-04-07feat: add a user_ca_pubkey field to config, specLars Wirzenius1-1/+24
With this, there's no need to install an SSH key into root's authorized_keys file. Sponsored-by: author
2021-08-06chore: fix small problems found by clippyLars Wirzenius1-2/+2
Sponsored-by: author
2021-07-24refactor: simplify Ok(...?) to just ...Lars Wirzenius1-2/+2
Sponsored-by: author
2021-03-25feat: give more useful and specific error messagesLars Wirzenius1-8/+25
2021-03-14fix: VMs can be restartedLars Wirzenius1-1/+1
Previously, the temporary file for the cloud-init configuration ISO was left attached to the VM. This meant the VM couldn't be turned off and back on again: the temporary no longer existed. Now we detach the ISO file after the VM has booted. As a side effect, vmadm has gained start and shutdown subcommands, so that the fix can be tested.
2021-03-07doc: add doc comments to crateLars Wirzenius1-0/+27
2021-03-07fix: install private part of generated host key, not publicLars Wirzenius1-1/+5
2021-03-07feat: generate SSH key pairs, create host certificatesLars Wirzenius1-6/+31
2021-03-01feat: change how command line interface worksLars Wirzenius1-1/+1
Easier to use now. --config before subcommand was annoying.
2021-03-01fix: tidy up code based on suggestions from clippyLars Wirzenius1-12/+3
2021-02-28feat: export cloud-init config, set SSH host keysLars Wirzenius1-57/+250
2021-01-24moarLars Wirzenius1-1/+60
2021-01-24feat: add initial CloudInitConfigLars Wirzenius1-0/+51