summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ele-gwhetzner.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-21 04:11:47 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-21 04:11:47 +0200
commit742ab1e5e72c4f7b6678cf586309d6d98d96272d (patch)
tree2e3b0e54ee28c0b5a8c7849be61ca511d28d4e97 /inventory/host_vars/ele-gwhetzner.yml
parentinitial tests with new network config (diff)
further improved network config
Diffstat (limited to 'inventory/host_vars/ele-gwhetzner.yml')
-rw-r--r--inventory/host_vars/ele-gwhetzner.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/inventory/host_vars/ele-gwhetzner.yml b/inventory/host_vars/ele-gwhetzner.yml
index b85b5243..bd20ea1e 100644
--- a/inventory/host_vars/ele-gwhetzner.yml
+++ b/inventory/host_vars/ele-gwhetzner.yml
@@ -25,8 +25,7 @@ network:
interfaces: "{{ install.interfaces }}"
primary: &_network_primary_
name: primary0
- ip: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr(hostvars[_vm_host_].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }}"
- mask: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr('netmask') }}"
+ prefix: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr(hostvars[_vm_host_].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
gateway: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr('address') }}"
overlay: "{{ (hostvars[_vm_host_].vm_host.network.bridges.public.overlay.prefix | ipaddr(hostvars[_vm_host_].vm_host.network.bridges.public.overlay.offsets[inventory_hostname])).split('/')[0] }}"
interfaces: