From 00dc4a7a85b32c4337dd3672adec2cbfe3597bfe Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 25 Mar 2021 12:29:44 +0200 Subject: feat: allow ~/ in config, specification files --- vmadm.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'vmadm.md') diff --git a/vmadm.md b/vmadm.md index 24ffe5c..2d97876 100644 --- a/vmadm.md +++ b/vmadm.md @@ -36,9 +36,15 @@ V4cecTlFJGBtUOUAAAAMbGl3QGV4b2xvYmUxAQIDBAUGBw== -----END OPENSSH PRIVATE KEY----- ~~~ +Note that we use *tilde expansion* in filenames to indicate they go +into the home directory. The Subplot test runner sets the `HOME` +environment variable to a suitable directory, so that the files don't +go into the actual home directory of the person running the generated +test program + ~~~{#config.yaml .file .yaml} -image_directory: images -default_base_image: base.qcow2 +image_directory: ~/images +default_base_image: ~/base.qcow2 default_image_gib: 5 default_memory_mib: 2048 default_cpus: 1 @@ -46,7 +52,7 @@ default_generate_host_certificate: true default_autostart: true ca_key: ca_key authorized_keys: - - .ssh/id_rsa.pub + - ~/.ssh/id_rsa.pub ~~~ ~~~{#ssh_key_pub .file} -- cgit v1.2.1