From 5c8d79d1fa6a6e6f6174558c2d6484683fa37c77 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 4 Mar 2021 09:16:06 +0200 Subject: feat: configurable image_directory where VM images go by default Also, specification file doesn't need to specify an image file anymore. Instead the image will be named after the VM and put into the image directory named in the configuration. --- vmadm.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'vmadm.md') diff --git a/vmadm.md b/vmadm.md index 8881a0a..1a056ac 100644 --- a/vmadm.md +++ b/vmadm.md @@ -66,10 +66,14 @@ given file init.yaml given file .ssh/id_rsa.pub from init_ssh_key_pub given file expected/meta-data from init-metadata given file expected/user-data from init-userdata -when I invoke vmadm cloud-init init.yaml actual +when I invoke vmadm cloud-init --config config.yaml init.yaml actual then directories actual and expected are identical ~~~ +~~~{#config.yaml .file. yaml} +image_directory: images +--- + ~~~{#init.yaml .file .yaml} name: init-test ssh_key_files: @@ -83,7 +87,7 @@ ecdsa_host_cert: ecdsa-certificate ed25519_host_key: ed25519-private ed25519_host_cert: ed25519-certificate base: /home/liw/tmp/debian-10-openstack-amd64.qcow2 -image: init.qcow2 +image: images/init.qcow2 image_size_gib: 5 memory_mib: 2048 cpus: 1 -- cgit v1.2.1