Add intdomain variable to simplify configs

This commit is contained in:
Timo Makinen 2025-06-21 16:02:57 +00:00
parent 05b4c3a9f4
commit e55dd35605
4 changed files with 9 additions and 8 deletions

View file

@ -3,6 +3,7 @@
mem_size: 512
intnet: "{{ network_interfaces[0].ipaddr + '/' + network_interfaces[0].netmask }}"
intdomain: "{{ inventory_hostname.split('.')[1:] | join('.') }}"
network_vip_interfaces:
- device: vio0
@ -43,7 +44,7 @@ unbound_zones:
{% else -%}
{{ reverse[:-1] | split('.', 1) | last -}}
{% endif -%}
- "{{ inventory_hostname.split('.')[1:] | join('.') }}"
- "{{ intdomain }}"
# use custom firewall config
firewall_src: pf.conf.gw_dna.j2