summaryrefslogtreecommitdiff
path: root/vmadm.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-04 09:16:06 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-04 09:33:28 +0200
commit5c8d79d1fa6a6e6f6174558c2d6484683fa37c77 (patch)
tree7ea950ecae3a1d13716ed397260f2bb576076925 /vmadm.md
parentbccad77273048aae6be22bf09264ca6c6fd4225b (diff)
downloadvmadm-5c8d79d1fa6a6e6f6174558c2d6484683fa37c77.tar.gz
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.
Diffstat (limited to 'vmadm.md')
-rw-r--r--vmadm.md8
1 files changed, 6 insertions, 2 deletions
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