summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
Diffstat (limited to 'inventory')
-rw-r--r--inventory/group_vars/accesspoints/vars.yml2
-rw-r--r--inventory/group_vars/chaos-at-home-ap/vars.yml2
-rw-r--r--inventory/group_vars/chaos-at-home-sensors/vars.yml8
-rw-r--r--inventory/group_vars/chaos-at-home-ups/vars.yml8
-rw-r--r--inventory/group_vars/dellos6/vars.yml4
-rw-r--r--inventory/group_vars/ele-ap/vars.yml2
-rw-r--r--inventory/group_vars/ele-dolmetsch-raspi/vars.yml4
-rw-r--r--inventory/group_vars/ele-ups/vars.yml6
-rw-r--r--inventory/group_vars/k8s-emc/vars.yml2
-rw-r--r--inventory/group_vars/promzone-chaos-at-home/vars.yml2
-rw-r--r--inventory/group_vars/promzone-elevate-festival/vars.yml2
-rw-r--r--inventory/group_vars/ups/vars.yml4
-rw-r--r--inventory/host_vars/ch-mon.yml16
-rw-r--r--inventory/host_vars/ch-router.yml20
-rw-r--r--inventory/host_vars/ch-testvm-atlas.yml4
-rw-r--r--inventory/host_vars/ch-testvm-openwrt.yml10
-rw-r--r--inventory/host_vars/ch-testvm-phoebe.yml6
-rw-r--r--inventory/host_vars/ch-testvm-prometheus.yml4
-rw-r--r--inventory/host_vars/ele-router-emc.yml14
-rw-r--r--inventory/host_vars/ele-router-hmtsaal.yml14
-rw-r--r--inventory/host_vars/ele-router-leslie.yml14
-rw-r--r--inventory/host_vars/ele-router.yml22
22 files changed, 85 insertions, 85 deletions
diff --git a/inventory/group_vars/accesspoints/vars.yml b/inventory/group_vars/accesspoints/vars.yml
index c514a22f..18807870 100644
--- a/inventory/group_vars/accesspoints/vars.yml
+++ b/inventory/group_vars/accesspoints/vars.yml
@@ -41,7 +41,7 @@ accesspoint_network_base_yaml: |
device: "{{ accesspoint_wired_interface }}{% if 'vlan' in network_mgmt_zone %}.{{ network_mgmt_zone.vlan }}{% endif %}"
accept_ra: 0
proto: static
- ipaddr: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) }}"
+ ipaddr: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) }}"
accesspoint_network_zones: "{{ accesspoint_network_zones_yaml | from_yaml }}"
diff --git a/inventory/group_vars/chaos-at-home-ap/vars.yml b/inventory/group_vars/chaos-at-home-ap/vars.yml
index fce6fc82..83925639 100644
--- a/inventory/group_vars/chaos-at-home-ap/vars.yml
+++ b/inventory/group_vars/chaos-at-home-ap/vars.yml
@@ -15,6 +15,6 @@ accesspoint_zones:
iot: "{{ network_zones.iot.wifi }}"
-prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
diff --git a/inventory/group_vars/chaos-at-home-sensors/vars.yml b/inventory/group_vars/chaos-at-home-sensors/vars.yml
index 91bed8ce..d6783736 100644
--- a/inventory/group_vars/chaos-at-home-sensors/vars.yml
+++ b/inventory/group_vars/chaos-at-home-sensors/vars.yml
@@ -83,7 +83,7 @@ openwrt_uci:
enabled: '1'
enable_server: '0'
server:
- - '{{ network_zones.iot.prefix | ipaddr(network_zones.iot.offsets["ch-iot"]) | ipaddr("address") }}'
+ - '{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets["ch-iot"]) | ansible.utils.ipaddr("address") }}'
dropbear:
- name: dropbear
@@ -115,8 +115,8 @@ openwrt_uci:
options:
device: "{{ sensornode_network_wired | ternary('eth0', 'wlan0') }}"
proto: static
- ipaddr: "{{ network_zones.iot.prefix | ipaddr(network_zones.iot.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.iot.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.iot.prefix | ansible.utils.ipaddr('netmask') }}"
- name: interface 'unused'
options:
@@ -143,6 +143,6 @@ openwrt_uci:
key: '{{ network_zones.iot.wifi.key }}'
-prometheus_scrape_endpoint: "{{ network_zones.iot.prefix | ipaddr(network_zones.iot.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
diff --git a/inventory/group_vars/chaos-at-home-ups/vars.yml b/inventory/group_vars/chaos-at-home-ups/vars.yml
index 7b60e893..2a67bb76 100644
--- a/inventory/group_vars/chaos-at-home-ups/vars.yml
+++ b/inventory/group_vars/chaos-at-home-ups/vars.yml
@@ -3,11 +3,11 @@ network_mgmt_zone: "{{ network_zones.mgmt }}"
ups_name: "{{ inventory_hostname | regex_replace('^ch-ups-(.*)$', '\\1') }}"
ups_query_sources:
- - "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets['ch-mon']) | ipaddr('address') }}"
- - "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets['ch-equinox-ws']) | ipaddr('address') }}"
+ - "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets['ch-mon']) | ansible.utils.ipaddr('address') }}"
+ - "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets['ch-equinox-ws']) | ansible.utils.ipaddr('address') }}"
-prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
@@ -15,4 +15,4 @@ prometheus_job_multitarget_nut__ups:
ch-mon:
- instance: "ups-{{ ups_name }}"
ups: "{{ ups_name }}"
- server: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
+ server: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
diff --git a/inventory/group_vars/dellos6/vars.yml b/inventory/group_vars/dellos6/vars.yml
index 29c4c0db..46737717 100644
--- a/inventory/group_vars/dellos6/vars.yml
+++ b/inventory/group_vars/dellos6/vars.yml
@@ -7,8 +7,8 @@ ansible_become_password: "{{ vault_ansible_become_password }}"
dellos6_mgmt_vlan: "{{ switch_mgmt_zone.vlan }}"
-dellos6_mgmt_ipaddr: "{{ switch_mgmt_zone.prefix | ipaddr(switch_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
-dellos6_mgmt_netmask: "{{ switch_mgmt_zone.prefix | ipaddr('netmask') }}"
+dellos6_mgmt_ipaddr: "{{ switch_mgmt_zone.prefix | ansible.utils.ipaddr(switch_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+dellos6_mgmt_netmask: "{{ switch_mgmt_zone.prefix | ansible.utils.ipaddr('netmask') }}"
dellos6_mgmt_interface: "{{ switch_mgmt_interface | default('') }}"
dellos6_vlans: "{{ switch_vlans }}"
diff --git a/inventory/group_vars/ele-ap/vars.yml b/inventory/group_vars/ele-ap/vars.yml
index 94034dbf..732c6b03 100644
--- a/inventory/group_vars/ele-ap/vars.yml
+++ b/inventory/group_vars/ele-ap/vars.yml
@@ -59,6 +59,6 @@ accesspoint_zones:
infoscreens: "{{ network_zones.infoscreens.wifi }}"
-prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
diff --git a/inventory/group_vars/ele-dolmetsch-raspi/vars.yml b/inventory/group_vars/ele-dolmetsch-raspi/vars.yml
index 3dcce239..e987b1ab 100644
--- a/inventory/group_vars/ele-dolmetsch-raspi/vars.yml
+++ b/inventory/group_vars/ele-dolmetsch-raspi/vars.yml
@@ -10,8 +10,8 @@ ssh_users_root:
- datacop
- nhg
-dolmetsch_raspi_server_address: "{{ network_zones.mixer.prefix | ipaddr(network_zones.mixer.offsets['ele-dol-raspi0']) | ipaddr('address') }}"
-dolmetsch_raspi_client_address: "{{ network_zones.mixer.prefix | ipaddr(network_zones.mixer.offsets['ele-dol-raspi1']) | ipaddr('address') }}"
+dolmetsch_raspi_server_address: "{{ network_zones.mixer.prefix | ansible.utils.ipaddr(network_zones.mixer.offsets['ele-dol-raspi0']) | ansible.utils.ipaddr('address') }}"
+dolmetsch_raspi_client_address: "{{ network_zones.mixer.prefix | ansible.utils.ipaddr(network_zones.mixer.offsets['ele-dol-raspi1']) | ansible.utils.ipaddr('address') }}"
# dolmetsch_raspi_recv_latency: 2000
dolmetsch_raspi_send_alsa_device: "hw:CARD=CODEC,DEV=0"
diff --git a/inventory/group_vars/ele-ups/vars.yml b/inventory/group_vars/ele-ups/vars.yml
index dfbeaaca..20fda933 100644
--- a/inventory/group_vars/ele-ups/vars.yml
+++ b/inventory/group_vars/ele-ups/vars.yml
@@ -7,10 +7,10 @@ network_mgmt_zone: "{{ network_zones.mgmt }}"
ups_name: "{{ inventory_hostname | regex_replace('^ele-ups-(.*)$', '\\1') }}"
ups_query_sources:
- - "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets['ele-calypso']) | ipaddr('address') }}"
+ - "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets['ele-calypso']) | ansible.utils.ipaddr('address') }}"
-prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
@@ -18,4 +18,4 @@ prometheus_job_multitarget_nut__ups:
ele-calypso:
- instance: "ups-{{ ups_name }}"
ups: "{{ ups_name }}"
- server: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
+ server: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
diff --git a/inventory/group_vars/k8s-emc/vars.yml b/inventory/group_vars/k8s-emc/vars.yml
index 49225f74..599eaf3a 100644
--- a/inventory/group_vars/k8s-emc/vars.yml
+++ b/inventory/group_vars/k8s-emc/vars.yml
@@ -48,7 +48,7 @@ kubeguard:
ele-telesto: enp36s0
ele-dione: eno2
-kubernetes_overlay_node_ip: "{{ kubernetes.pod_ip_range | ipsubnet(kubernetes.pod_ip_range_size, kubeguard.node_index[inventory_hostname]) | ipaddr(1) | ipaddr('address') }}"
+kubernetes_overlay_node_ip: "{{ kubernetes.pod_ip_range | ipsubnet(kubernetes.pod_ip_range_size, kubeguard.node_index[inventory_hostname]) | ansible.utils.ipaddr(1) | ansible.utils.ipaddr('address') }}"
kubernetes_metrics_server_version: 0.6.1
diff --git a/inventory/group_vars/promzone-chaos-at-home/vars.yml b/inventory/group_vars/promzone-chaos-at-home/vars.yml
index 9a132c39..0d4d8354 100644
--- a/inventory/group_vars/promzone-chaos-at-home/vars.yml
+++ b/inventory/group_vars/promzone-chaos-at-home/vars.yml
@@ -1,5 +1,5 @@
---
-prometheus_scrape_endpoint: "{{ network.primary.address | ipaddr('address') }}:9999"
+prometheus_scrape_endpoint: "{{ network.primary.address | ansible.utils.ipaddr('address') }}:9999"
prometheus_exporters_extra: []
prometheus_exporters_default:
diff --git a/inventory/group_vars/promzone-elevate-festival/vars.yml b/inventory/group_vars/promzone-elevate-festival/vars.yml
index 48c745e8..08b7a0d3 100644
--- a/inventory/group_vars/promzone-elevate-festival/vars.yml
+++ b/inventory/group_vars/promzone-elevate-festival/vars.yml
@@ -1,5 +1,5 @@
---
-prometheus_scrape_endpoint: "{{ network.primary.address | ipaddr('address') }}:9999"
+prometheus_scrape_endpoint: "{{ network.primary.address | ansible.utils.ipaddr('address') }}:9999"
prometheus_exporters_extra: []
prometheus_exporters_default:
diff --git a/inventory/group_vars/ups/vars.yml b/inventory/group_vars/ups/vars.yml
index 2e75f882..99328aec 100644
--- a/inventory/group_vars/ups/vars.yml
+++ b/inventory/group_vars/ups/vars.yml
@@ -109,8 +109,8 @@ openwrt_uci:
options:
device: "eth0"
proto: static
- ipaddr: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_mgmt_zone.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
prometheus-node-exporter-lua:
diff --git a/inventory/host_vars/ch-mon.yml b/inventory/host_vars/ch-mon.yml
index c8f0f215..ee9d12cc 100644
--- a/inventory/host_vars/ch-mon.yml
+++ b/inventory/host_vars/ch-mon.yml
@@ -32,17 +32,17 @@ network:
interfaces: "{{ install.interfaces }}"
primary: &_network_primary_
name: svc0
- address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ address: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) }}"
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') }}"
+ gateway: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ansible.utils.ipaddr('address') }}"
interfaces:
- *_network_primary_
- name: iot0
- address: "{{ network_zones.iot.prefix | ipaddr(network_zones.iot.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ address: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets[inventory_hostname]) }}"
- name: mgmt0
- address: "{{ network_zones.mgmt.prefix | ipaddr(network_zones.mgmt.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ address: "{{ network_zones.mgmt.prefix | ansible.utils.ipaddr(network_zones.mgmt.offsets[inventory_hostname]) }}"
lvm_groups:
@@ -73,7 +73,7 @@ prometheus_server_alertmanager:
username: server
password: "{{ vault_prometheus_alertmanager_auth_user_passwords['server'] }}"
-prometheus_server_web_external_url: "http://{{ network.primary.address | ipaddr('address') }}/prometheus/"
+prometheus_server_web_external_url: "http://{{ network.primary.address | ansible.utils.ipaddr('address') }}/prometheus/"
prometheus_server_auth_users:
server: "{{ vault_prometheus_server_auth_user_passwords['server'] }}"
@@ -119,7 +119,7 @@ prometheus_job_multitarget_blackbox__probe:
module: http_tls_2xx
- instance: "ssh-{{ inventory_hostname }}"
- target: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address') }}:{{ ansible_port | default(22) }}"
+ target: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:{{ ansible_port | default(22) }}"
module: ssh_banner
prometheus_job_multitarget_ssl__probe:
@@ -130,11 +130,11 @@ prometheus_job_multitarget_ssl__probe:
prometheus_alertmanager_smtp:
- smarthost: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets['ch-prometheus-legacy']) | ipaddr('address') }}:25"
+ smarthost: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets['ch-prometheus-legacy']) | ansible.utils.ipaddr('address') }}:25"
from: "noreply@chaos-at-home.org"
require_tls: no
-prometheus_alertmanager_web_external_url: "http://{{ network.primary.address | ipaddr('address') }}/alertmanager/"
+prometheus_alertmanager_web_external_url: "http://{{ network.primary.address | ansible.utils.ipaddr('address') }}/alertmanager/"
prometheus_alertmanager_auth_users:
server: "{{ vault_prometheus_alertmanager_auth_user_passwords['server'] }}"
diff --git a/inventory/host_vars/ch-router.yml b/inventory/host_vars/ch-router.yml
index 640fadf1..197179d2 100644
--- a/inventory/host_vars/ch-router.yml
+++ b/inventory/host_vars/ch-router.yml
@@ -296,15 +296,15 @@ openwrt_uci:
options:
device: eth0
proto: static
- ipaddr: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.svc.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.svc.prefix | ansible.utils.ipaddr('netmask') }}"
- name: interface 'magenta'
options:
device: eth1
proto: static
- ipaddr: "{{ network_zones.magenta.prefix | ipaddr(network_zones.magenta.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.magenta.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.magenta.prefix | ansible.utils.ipaddr(network_zones.magenta.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.magenta.prefix | ansible.utils.ipaddr('netmask') }}"
gateway: "{{ network_zones.magenta.gateway }}"
dns: "{{ network_zones.magenta.dns }}"
@@ -312,15 +312,15 @@ openwrt_uci:
options:
device: eth2
proto: static
- ipaddr: "{{ network_zones.mgmt.prefix | ipaddr(network_zones.mgmt.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.mgmt.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.mgmt.prefix | ansible.utils.ipaddr(network_zones.mgmt.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.mgmt.prefix | ansible.utils.ipaddr('netmask') }}"
- name: route 'lan'
options:
interface: svc
- target: "{{ network_zones.lan.prefix | ipaddr('network') }}"
- netmask: "{{ network_zones.lan.prefix | ipaddr('netmask') }}"
- gateway: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ipaddr('address') }}"
+ target: "{{ network_zones.lan.prefix | ansible.utils.ipaddr('network') }}"
+ netmask: "{{ network_zones.lan.prefix | ansible.utils.ipaddr('netmask') }}"
+ gateway: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ansible.utils.ipaddr('address') }}"
sqm:
- name: queue 'magenta'
@@ -341,6 +341,6 @@ openwrt_uci:
overhead: '18 mpu 64 noatm'
-prometheus_scrape_endpoint: "{{ network_zones.mgmt.prefix | ipaddr(network_zones.mgmt.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_zones.mgmt.prefix | ansible.utils.ipaddr(network_zones.mgmt.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
diff --git a/inventory/host_vars/ch-testvm-atlas.yml b/inventory/host_vars/ch-testvm-atlas.yml
index f647a97f..3f10a59e 100644
--- a/inventory/host_vars/ch-testvm-atlas.yml
+++ b/inventory/host_vars/ch-testvm-atlas.yml
@@ -25,9 +25,9 @@ network:
interfaces: "{{ install.interfaces }}"
primary: &_network_primary_
name: primary0
- address: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ address: "{{ vm_host.network.bridges.public.prefix | ansible.utils.ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) }}"
gateway: "{{ vm_host.network.bridges.public.gateway }}"
- address6: "{{ vm_host.network.bridges.public.prefix6 | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ address6: "{{ vm_host.network.bridges.public.prefix6 | ansible.utils.ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) }}"
gateway6: "{{ vm_host.network.bridges.public.gateway6 }}"
interfaces:
- *_network_primary_
diff --git a/inventory/host_vars/ch-testvm-openwrt.yml b/inventory/host_vars/ch-testvm-openwrt.yml
index a28c4ade..9c9b1bf7 100644
--- a/inventory/host_vars/ch-testvm-openwrt.yml
+++ b/inventory/host_vars/ch-testvm-openwrt.yml
@@ -94,14 +94,14 @@ openwrt_uci:
options:
device: eth0
proto: static
- ipaddr: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.svc.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.svc.prefix | ansible.utils.ipaddr('netmask') }}"
gateway: "{{ network_zones.svc.gateway }}"
dns: "{{ network_zones.svc.dns }}"
- name: route 'lan'
options:
interface: svc
- target: "{{ network_zones.lan.prefix | ipaddr('network') }}"
- netmask: "{{ network_zones.lan.prefix | ipaddr('netmask') }}"
- gateway: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ipaddr('address') }}"
+ target: "{{ network_zones.lan.prefix | ansible.utils.ipaddr('network') }}"
+ netmask: "{{ network_zones.lan.prefix | ansible.utils.ipaddr('netmask') }}"
+ gateway: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ansible.utils.ipaddr('address') }}"
diff --git a/inventory/host_vars/ch-testvm-phoebe.yml b/inventory/host_vars/ch-testvm-phoebe.yml
index e480ae5d..109f820f 100644
--- a/inventory/host_vars/ch-testvm-phoebe.yml
+++ b/inventory/host_vars/ch-testvm-phoebe.yml
@@ -28,12 +28,12 @@ network:
interfaces: "{{ install.interfaces }}"
primary: &_network_primary_
name: svc0
- address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ address: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) }}"
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') }}"
+ gateway: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ansible.utils.ipaddr('address') }}"
interfaces:
- *_network_primary_
- name: iot0
- address: "{{ network_zones.iot.prefix | ipaddr(network_zones.iot.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ address: "{{ network_zones.iot.prefix | ansible.utils.ipaddr(network_zones.iot.offsets[inventory_hostname]) }}"
diff --git a/inventory/host_vars/ch-testvm-prometheus.yml b/inventory/host_vars/ch-testvm-prometheus.yml
index ddc10a8e..f95366b0 100644
--- a/inventory/host_vars/ch-testvm-prometheus.yml
+++ b/inventory/host_vars/ch-testvm-prometheus.yml
@@ -26,10 +26,10 @@ network:
interfaces: "{{ install.interfaces }}"
primary: &_network_primary_
name: svc0
- address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ address: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) }}"
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') }}"
+ gateway: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ansible.utils.ipaddr('address') }}"
interfaces:
- *_network_primary_
diff --git a/inventory/host_vars/ele-router-emc.yml b/inventory/host_vars/ele-router-emc.yml
index 5c159ff9..7384cb20 100644
--- a/inventory/host_vars/ele-router-emc.yml
+++ b/inventory/host_vars/ele-router-emc.yml
@@ -11,8 +11,8 @@ openwrt_network_external:
options:
device: 'eth5'
proto: static
- ipaddr: "{{ network_zones.cc_hmtsaal.prefix | ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.cc_hmtsaal.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.cc_hmtsaal.prefix | ansible.utils.ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.cc_hmtsaal.prefix | ansible.utils.ipaddr('netmask') }}"
gateway: "{{ network_zones.cc_hmtsaal.gateway }}"
dns: "{{ network_zones.cc_hmtsaal.dns }}"
accept_ra: 0
@@ -25,7 +25,7 @@ openwrt_network_internal_yaml: |
device: "eth0.{{ network_zones[zone_name].vlan }}"
proto: static
ipaddr: "{{ network_zones[zone_name].gateway }}"
- netmask: "{{ network_zones[zone_name].prefix | ipaddr('netmask') }}"
+ netmask: "{{ network_zones[zone_name].prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
{% endfor %}
@@ -46,8 +46,8 @@ openwrt_network_base:
options:
device: "eth0.{{ network_mgmt_zone.vlan }}"
proto: static
- ipaddr: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_mgmt_zone.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
@@ -176,7 +176,7 @@ openwrt_mixin:
flush ruleset
define nic_citycom = eth5
- define ip_citycom = {{ network_zones.cc_hmtsaal.prefix | ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ipaddr('address') }}
+ define ip_citycom = {{ network_zones.cc_hmtsaal.prefix | ansible.utils.ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}
define nic_mgmt = "eth0.{{ network_mgmt_zone.vlan }}"
define prefix_mgmt = {{ network_mgmt_zone.prefix }}
@@ -260,6 +260,6 @@ openwrt_uci:
network: "{{ openwrt_network_base + openwrt_network_internal + openwrt_network_external }}"
-prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
diff --git a/inventory/host_vars/ele-router-hmtsaal.yml b/inventory/host_vars/ele-router-hmtsaal.yml
index 70823da3..826d4df6 100644
--- a/inventory/host_vars/ele-router-hmtsaal.yml
+++ b/inventory/host_vars/ele-router-hmtsaal.yml
@@ -13,8 +13,8 @@ openwrt_network_external:
options:
device: 'eth1'
proto: static
- ipaddr: "{{ network_zones.cc_hmtsaal.prefix | ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.cc_hmtsaal.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.cc_hmtsaal.prefix | ansible.utils.ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.cc_hmtsaal.prefix | ansible.utils.ipaddr('netmask') }}"
gateway: "{{ network_zones.cc_hmtsaal.gateway }}"
dns: "{{ network_zones.cc_hmtsaal.dns }}"
accept_ra: 0
@@ -27,7 +27,7 @@ openwrt_network_internal_yaml: |
device: "eth0.{{ network_zones[zone_name].vlan }}"
proto: static
ipaddr: "{{ network_zones[zone_name].gateway }}"
- netmask: "{{ network_zones[zone_name].prefix | ipaddr('netmask') }}"
+ netmask: "{{ network_zones[zone_name].prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
{% endfor %}
@@ -48,8 +48,8 @@ openwrt_network_base:
options:
device: "eth0.{{ network_mgmt_zone.vlan }}"
proto: static
- ipaddr: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_mgmt_zone.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
@@ -179,7 +179,7 @@ openwrt_mixin:
flush ruleset
define nic_citycom = eth1
- define ip_citycom = {{ network_zones.cc_hmtsaal.prefix | ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ipaddr('address') }}
+ define ip_citycom = {{ network_zones.cc_hmtsaal.prefix | ansible.utils.ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}
define nic_mgmt = "eth0.{{ network_mgmt_zone.vlan }}"
define prefix_mgmt = {{ network_mgmt_zone.prefix }}
@@ -280,6 +280,6 @@ openwrt_uci:
linklayer: 'ethernet'
overhead: '44 mpu 84'
-prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
diff --git a/inventory/host_vars/ele-router-leslie.yml b/inventory/host_vars/ele-router-leslie.yml
index 27928938..2bee033e 100644
--- a/inventory/host_vars/ele-router-leslie.yml
+++ b/inventory/host_vars/ele-router-leslie.yml
@@ -13,8 +13,8 @@ openwrt_network_external:
options:
device: 'eth1'
proto: static
- ipaddr: "{{ network_zones.cc_leslie.prefix | ipaddr(network_zones.cc_leslie.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.cc_leslie.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.cc_leslie.prefix | ansible.utils.ipaddr(network_zones.cc_leslie.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.cc_leslie.prefix | ansible.utils.ipaddr('netmask') }}"
gateway: "{{ network_zones.cc_leslie.gateway }}"
dns: "{{ network_zones.cc_leslie.dns }}"
accept_ra: 0
@@ -27,7 +27,7 @@ openwrt_network_internal_yaml: |
device: "eth0.{{ network_zones[zone_name].vlan }}"
proto: static
ipaddr: "{{ network_zones[zone_name].gateway }}"
- netmask: "{{ network_zones[zone_name].prefix | ipaddr('netmask') }}"
+ netmask: "{{ network_zones[zone_name].prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
{% endfor %}
@@ -48,8 +48,8 @@ openwrt_network_base:
options:
device: "eth0.{{ network_mgmt_zone.vlan }}"
proto: static
- ipaddr: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_mgmt_zone.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
@@ -179,7 +179,7 @@ openwrt_mixin:
flush ruleset
define nic_citycom = eth1
- define ip_citycom = {{ network_zones.cc_leslie.prefix | ipaddr(network_zones.cc_leslie.offsets[inventory_hostname]) | ipaddr('address') }}
+ define ip_citycom = {{ network_zones.cc_leslie.prefix | ansible.utils.ipaddr(network_zones.cc_leslie.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}
define nic_mgmt = "eth0.{{ network_mgmt_zone.vlan }}"
define prefix_mgmt = {{ network_mgmt_zone.prefix }}
@@ -280,6 +280,6 @@ openwrt_uci:
linklayer: 'ethernet'
overhead: '44 mpu 84'
-prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt
diff --git a/inventory/host_vars/ele-router.yml b/inventory/host_vars/ele-router.yml
index 33c8fa9b..bddb40e8 100644
--- a/inventory/host_vars/ele-router.yml
+++ b/inventory/host_vars/ele-router.yml
@@ -32,14 +32,14 @@ openwrt_network_external:
options:
device: 'eth5'
proto: static
- ipaddr: "{{ network_zones.murat_transfer.prefix | ipaddr(network_zones.murat_transfer.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.murat_transfer.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.murat_transfer.prefix | ansible.utils.ipaddr(network_zones.murat_transfer.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.murat_transfer.prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
- name: rule
options:
priority: 41050
- src: "{{ network_zones.murat_transfer.prefix | ipaddr(network_zones.murat_transfer.offsets[inventory_hostname]) | ipaddr('address') }}/32"
+ src: "{{ network_zones.murat_transfer.prefix | ansible.utils.ipaddr(network_zones.murat_transfer.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}/32"
lookup: 105
- name: rule
@@ -53,21 +53,21 @@ openwrt_network_external:
interface: 'wanmur'
table: 105
target: '0.0.0.0/0'
- gateway: "{{ network_zones.murat_transfer.prefix | ipaddr(network_zones.murat_transfer.offsets['ele-mur']) | ipaddr('address') }}"
+ gateway: "{{ network_zones.murat_transfer.prefix | ansible.utils.ipaddr(network_zones.murat_transfer.offsets['ele-mur']) | ansible.utils.ipaddr('address') }}"
- name: interface 'wanlte'
options:
device: 'eth4'
proto: static
- ipaddr: "{{ network_zones.datacop_lte.prefix | ipaddr(network_zones.datacop_lte.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_zones.datacop_lte.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_zones.datacop_lte.prefix | ansible.utils.ipaddr(network_zones.datacop_lte.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_zones.datacop_lte.prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
- name: rule
options:
priority: 41040
- src: "{{ network_zones.datacop_lte.prefix | ipaddr(network_zones.datacop_lte.offsets[inventory_hostname]) | ipaddr('address') }}/32"
+ src: "{{ network_zones.datacop_lte.prefix | ansible.utils.ipaddr(network_zones.datacop_lte.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}/32"
lookup: 104
- name: rule
@@ -107,7 +107,7 @@ openwrt_network_internal_yaml: |
device: "eth0.{{ network_zones[zone_name].vlan }}"
proto: static
ipaddr: "{{ network_zones[zone_name].gateway }}"
- netmask: "{{ network_zones[zone_name].prefix | ipaddr('netmask') }}"
+ netmask: "{{ network_zones[zone_name].prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
{% endfor %}
@@ -128,8 +128,8 @@ openwrt_network_base:
options:
device: "eth0.{{ network_mgmt_zone.vlan }}"
proto: static
- ipaddr: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}"
- netmask: "{{ network_mgmt_zone.prefix | ipaddr('netmask') }}"
+ ipaddr: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"
+ netmask: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr('netmask') }}"
accept_ra: 0
@@ -400,6 +400,6 @@ openwrt_uci:
network: "{{ openwrt_network_base + openwrt_network_internal + openwrt_network_external }}"
-prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100"
+prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
- openwrt