fix: configurable OVMF/machine type, routes syntax, package lists, interface names

This commit is contained in:
2026-02-20 18:47:12 +01:00
parent d0ae20911b
commit 5dd84c6b39
6 changed files with 32 additions and 11 deletions

View File

@@ -13,7 +13,9 @@ network:
addresses:
- "{{ iface.ip }}/{{ iface.prefix }}"
{% if iface.gateway | default('') | string | length %}
gateway4: "{{ iface.gateway }}"
routes:
- to: default
via: "{{ iface.gateway }}"
{% endif %}
{% else %}
dhcp4: true