dataset/seed/nsd/templates/nsd.yml

13 lines
428 B
YAML
Raw Normal View History

2023-07-31 15:30:32 +02:00
address: '{{ general.network.interface_0.ip_eth0 }}'
2022-07-01 22:02:44 +02:00
records:
2023-06-23 08:12:05 +02:00
{% for domain in nsd_zones %}
2023-07-31 15:30:32 +02:00
{% set suffix = domain|normalize_family %}
2023-06-23 08:12:05 +02:00
{% set hostnames = nsd["nsd_zone_" + suffix]["hostname_" + suffix]["hostname_" + suffix] %}
{% for hostname in hostnames %}
{% set type = hostname['type_' + suffix] %}
{% if type == 'A' %}
2023-07-31 15:30:32 +02:00
'{{ hostname }}.{{ domain }}': '{{ hostname['ip_' + suffix] }}'
2023-06-23 08:12:05 +02:00
{% endif %}
{% endfor %}
{% endfor %}