From ee7a3e4e7b4816bca24c3c87417e08fdd2949483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 8 Dec 2021 19:17:15 +0000 Subject: roles/vmm: Guest kernel path is more concise --- roles/vmm/defaults/main.yml | 2 +- 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 }}" -- cgit v1.2.3