diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-08 19:17:15 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-09 16:43:04 +0000 |
commit | ee7a3e4e7b4816bca24c3c87417e08fdd2949483 (patch) | |
tree | 0114adf133b9cb4f76d586d3f3308cf3e415f587 | |
parent | d955edab044335b4b599963df078a4f85d7faa7b (diff) | |
download | rules-ee7a3e4e7b4816bca24c3c87417e08fdd2949483.tar.gz |
roles/vmm: Guest kernel path is more concise
-rw-r--r-- | roles/vmm/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/vmm/templates/vm.conf.j2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/vmm/defaults/main.yml b/roles/vmm/defaults/main.yml index e91c7a1..5ba92c6 100644 --- a/roles/vmm/defaults/main.yml +++ b/roles/vmm/defaults/main.yml @@ -10,7 +10,7 @@ vmm_default_fallback_http: true vmm_default_password: "{{ lookup('password', lookup('env', 'PWD') ~ '/files/secrets/hosts/default/root-password') }}" vmm_default_ssh_key: "{{ lookup('file', lookup('env', 'PWD') ~ '/files/keys/rgoncalves.pub') }}" -vmm_image_openbsd_kernel_prefix: /bsd.vm +vmm_image_openbsd_kernel_prefix: /bsd.vmm vmm_network_forwarded_ips: ["", 6] diff --git a/roles/vmm/templates/vm.conf.j2 b/roles/vmm/templates/vm.conf.j2 index 32e4316..df15c7b 100644 --- a/roles/vmm/templates/vm.conf.j2 +++ b/roles/vmm/templates/vm.conf.j2 @@ -12,7 +12,7 @@ vm "{{ vm.name }}" { disable {% endif %} {% if vm.image == "openbsd" %} - boot "/bsd.vm.{{ vm.name }}" + boot "{{ vmm_image_openbsd_kernel_prefix }}.{{ vm.name }}" {% endif %} memory {{ vm.memory }} disk "{{ vmm_disk_dir }}/{{ vm.name }}.{{ vmm_disk_format }}" |