summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2023-09-08feat: "reboot" subcommandLars Wirzenius3-0/+49
Sponsored-by: author
2023-09-08feat: add aliases to some subcommandsLars Wirzenius1-0/+3
create = new remove = delete stop = shutdown Sponsored-by: author
2023-09-08refactor: use current clap instead of structopt for command lineLars Wirzenius1-27/+18
Sponsored-by: author
2023-09-01fix: include filename in error message of being unable to rm imageLars Wirzenius1-2/+7
Sponsored-by: author
2023-04-07fix: bump dependency on virt, fix breakageLars Wirzenius1-3/+2
virt version 0.2.11 had virt::domain::VIR_DOMAIN_AFFECT_CONFIG and other constants. In 0.2.12 it's now virt::sys::VIR_DOMAIN_AFFECT_CONFIG. Bump the dependency version and make necessary changes. Sponsored-by: author
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 Wirzenius2-3/+3
Sponsored-by: author
2022-04-29feat: optionally turn off authorized keys support in SSH serverLars Wirzenius3-0/+26
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 Wirzenius3-12/+68
With this, there's no need to install an SSH key into root's authorized_keys file. Sponsored-by: author
2022-02-28feat: add a recreate subcommandLars Wirzenius3-0/+49
Sponsored-by: author
2022-01-29feat: allow start, stop, new, delete on multiple specs at onceLars Wirzenius1-18/+22
Sponsored-by: author
2021-12-08feat: give a more useful error message when VM image already existsLars Wirzenius3-1/+29
Sponsored-by: author
2021-11-18fix: drop some debugging outputLars Wirzenius2-2/+0
Sponsored-by: author
2021-11-10feat: check that virtual network names are syntactically correctLars Wirzenius3-3/+67
Sponsored-by: author
2021-11-01chore: fix code formattingLars Wirzenius3-3/+5
2021-10-19feat: `vmadm list` writes names in alphabetical orderLars Wirzenius1-1/+3
Sponsored-by: author
2021-10-16feat: allow ~user/ in path names, not just ~/Lars Wirzenius3-29/+30
Add the home-dir crate as a dependency for tilde expansion. Sponsored-by: author
2021-10-07feat: the `spec` and `config` subcommand now output pretty JSONLars Wirzenius2-2/+3
Sponsored-by: author
2021-08-20feat! add support for non-virtual networksLars Wirzenius2-2/+2
The virtual, libvirt-only network foo must now be specified as network=foo, to allow a non-virtual network over a local bridge device be specified as bridge=br0. Sponsored-by: author
2021-08-08feat: expand tilde notation in the CA key field in a specLars Wirzenius1-1/+1
Sponsored-by: author
2021-08-06feat: add progress reportingLars Wirzenius11-36/+128
Sponsored-by: author
2021-08-06chore: fix small problems found by clippyLars Wirzenius5-9/+9
Sponsored-by: author
2021-08-05feat: if no networks are specified, use defaultLars Wirzenius3-8/+10
Also, drop lan, wan from test config, because we can't assume they're available in the environment the tests are run in. Sponsored-by: author
2021-07-25fix: actually add networks to VMLars Wirzenius3-8/+22
Sponsored-by: author
2021-07-25feat: check that VM will be getting networksLars Wirzenius1-0/+7
Sponsored-by: author
2021-07-25feat: debug log networks list, to be added to VMLars Wirzenius1-0/+2
Sponsored-by: author
2021-07-25feat: allow use to add a VM on virtual networksLars Wirzenius5-6/+34
Sponsored-by: author
2021-07-25test: verify that "vmadm config" worksLars Wirzenius1-1/+1
Sponsored-by: author
2021-07-25feat: do not allow unknown fields in the configLars Wirzenius1-0/+1
Sponsored-by: author
2021-07-24refactor: apply fixes suggested by clippyLars Wirzenius1-2/+2
Sponsored-by: author
2021-07-24refactor: simplify Ok(...?) to just ...Lars Wirzenius1-1/+1
Sponsored-by: author
2021-07-24refactor: simplify Ok(...?) to just ...Lars Wirzenius1-2/+2
Sponsored-by: author
2021-07-24refactor: use Option::map instead of doing it manuallyLars Wirzenius1-5/+4
Sponsored-by: author
2021-07-24fix: give correct error for missing image for a specLars Wirzenius1-1/+1
Sponsored-by: author
2021-07-12feat: subcommand 'spec'Lars Wirzenius4-1/+33
Sponsored-by: author
2021-07-12feat: add sub-command "config"Lars Wirzenius4-2/+29
Sponsored-by: author
2021-03-25feat: allow ~/ in config, specification filesLars Wirzenius4-6/+52
2021-03-25refactor: clean up warnings found by clippyLars Wirzenius3-14/+11
2021-03-25feat: give more useful and specific error messagesLars Wirzenius8-58/+174
2021-03-24fix: don't fail if VM is already running and start is requestedLars Wirzenius1-2/+4
2021-03-24refactor: when starting, stopping do all VMs at onceLars Wirzenius4-3/+13
2021-03-24refactor: when deleting, ask all VMs to shut down at once, for speedLars Wirzenius2-5/+18
2021-03-24refactor: when creating many VMs, create all before waiting for SSHLars Wirzenius1-0/+2
2021-03-21feat: optionally mark new VM as autostartedLars Wirzenius4-0/+26
2021-03-14fix: VMs can be restartedLars Wirzenius12-36/+195
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-13refactor: add a light abstraction over libvirt bindingsLars Wirzenius4-86/+123
These do only what vmadm needs, no more.
2021-03-07doc: add doc comments to crateLars Wirzenius12-0/+218