dataset/seed/nsd/templates/nsd.yml
2023-07-31 15:30:32 +02:00

12 lines
428 B
YAML

address: '{{ general.network.interface_0.ip_eth0 }}'
records:
{% for domain in nsd_zones %}
{% set suffix = domain|normalize_family %}
{% set hostnames = nsd["nsd_zone_" + suffix]["hostname_" + suffix]["hostname_" + suffix] %}
{% for hostname in hostnames %}
{% set type = hostname['type_' + suffix] %}
{% if type == 'A' %}
'{{ hostname }}.{{ domain }}': '{{ hostname['ip_' + suffix] }}'
{% endif %}
{% endfor %}
{% endfor %}