diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-07-18 20:15:13 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-07-20 23:06:59 +0200 |
commit | 0448ed6524ea9fb5f588a51d4316c4db7e8b8a49 (patch) | |
tree | dfc70389ed68007fa15907f09c69921704ee832d /inventory/host_vars/ele-gwhetzner.yml | |
parent | generic 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.yml | 1 |
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_ |