diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-12-27 20:46:21 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-12-27 20:46:21 +0100 |
commit | 67db0fd753e18532aab373851e85e791008b5384 (patch) | |
tree | a4d011f54ba9f36cd4b4190c894896188b2c01ca /inventory/host_vars | |
parent | also fix sample config for grafana datasources (diff) |
implement vm/guest/network role for OpenBSD
Diffstat (limited to 'inventory/host_vars')
-rw-r--r-- | inventory/host_vars/ch-router-obsd.yml | 8 |
1 files changed, 5 insertions, 3 deletions
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_ |