summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ele-gwhetzner.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-07-18 20:15:13 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-07-20 23:06:59 +0200
commit0448ed6524ea9fb5f588a51d4316c4db7e8b8a49 (patch)
treedfc70389ed68007fa15907f09c69921704ee832d /inventory/host_vars/ele-gwhetzner.yml
parentgeneric playbooks: cook some variables (diff)
vm/guest/network: simplify template
Diffstat (limited to 'inventory/host_vars/ele-gwhetzner.yml')
-rw-r--r--inventory/host_vars/ele-gwhetzner.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/inventory/host_vars/ele-gwhetzner.yml b/inventory/host_vars/ele-gwhetzner.yml
index 5a15196a..fe0dc028 100644
--- a/inventory/host_vars/ele-gwhetzner.yml
+++ b/inventory/host_vars/ele-gwhetzner.yml
@@ -24,6 +24,7 @@ network:
name: primary0
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_