From 67db0fd753e18532aab373851e85e791008b5384 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 27 Dec 2021 20:46:21 +0100 Subject: implement vm/guest/network role for OpenBSD --- inventory/host_vars/ch-router-obsd.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'inventory/host_vars/ch-router-obsd.yml') diff --git a/inventory/host_vars/ch-router-obsd.yml b/inventory/host_vars/ch-router-obsd.yml index cf2b7784..7827cf99 100644 --- a/inventory/host_vars/ch-router-obsd.yml +++ b/inventory/host_vars/ch-router-obsd.yml @@ -10,9 +10,8 @@ install: primary: /dev/sda virtio: vda: - type: lvm - vg: "{{ hostvars[vm_host.name].host_name }}" - lv: "{{ inventory_hostname }}" + type: zfs + name: root size: 10g interfaces: - bridge: br-svc @@ -25,5 +24,8 @@ network: name: vio0 address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" gateway: "{{ network_zones.svc.gateway }}" + static_routes: + - destination: "{{ network_zones.lan.prefix }}" + gateway: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ipaddr('address') }}" interfaces: - *_network_primary_ -- cgit v1.2.3