dataset/seed/nsd/templates/nsd.yml

13 lines
397 B
YAML
Raw Normal View History

2022-07-01 22:02:44 +02:00
address: '%%ip_eth0'
records:
2022-08-18 10:19:43 +02:00
%for %%domain in %%nsd_zones
2022-07-01 22:02:44 +02:00
%set %%suffix = %%normalize_family(%%domain)
%set %%hostnames = %%nsd["nsd_zone_" + %%suffix]["hostname_" + %%suffix]["hostname_" + %%suffix]
2022-12-25 17:08:52 +01:00
%for %%hostname in %%hostnames
%set %%type = %%hostname['type_' + %%suffix]
2022-07-01 22:02:44 +02:00
%if %%type == 'A'
2022-12-25 17:08:52 +01:00
%%{hostname}.%%domain: '%%hostname['ip_' + %%suffix]'
2022-07-01 22:02:44 +02:00
%end if
%end for
%end for