db.services.ffnet.j2 887 B

1234567891011121314151617181920
  1. ; zonefile for services.{{freifunk.kurzname}}.
  2. $TTL 86400
  3. @ IN SOA {{bind_zonemaster.server}}. {{bind_zonemaster.email}}. (
  4. {{ansible_date_time.epoch}} ; Serial
  5. 604800 ; Refresh
  6. 86400 ; Retry
  7. 2419200 ; Expire
  8. 86400 ) ; Negative Cache TTL
  9. ;
  10. @ IN NS {{bind.ns_name}}.services.{{freifunk.kurzname}}.
  11. {{bind.ns_name}} IN A {{ansible_default_ipv4.address}}
  12. {% if bind.ffms_for_groups is defined and bind.ffms_for_groups.0 is defined %}
  13. {% for group in bind.ffms_for_groups %}
  14. {% if "static_hosts" in hostvars[groups[group][0]] %}
  15. {% for host in hostvars[groups[group][0]].static_hosts %}
  16. {{host.name}} IN A {{host.v4_address}}
  17. {% endfor %}
  18. {% endif %}
  19. {% endfor %}
  20. {% endif %}