From 0448ed6524ea9fb5f588a51d4316c4db7e8b8a49 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 18 Jul 2020 20:15:13 +0200 Subject: vm/guest/network: simplify template --- inventory/host_vars/ch-mimas.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'inventory/host_vars/ch-mimas.yml') diff --git a/inventory/host_vars/ch-mimas.yml b/inventory/host_vars/ch-mimas.yml index 356d3b8b..b8f49a4a 100644 --- a/inventory/host_vars/ch-mimas.yml +++ b/inventory/host_vars/ch-mimas.yml @@ -24,6 +24,7 @@ network: name: eth0 address: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" gateway: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[vm_host.name]) | ipaddr('address') }}" + config: overlay overlay: "{{ (vm_host.network.bridges.public.overlays.default.prefix | ipaddr(vm_host.network.bridges.public.overlays.default.offsets[inventory_hostname])).split('/')[0] }}" interfaces: - *_network_primary_ -- cgit v1.2.3