dhcpd.conf.j2 1.0 KB

12345678910111213141516171819202122232425262728
  1. # This file is managed by ansible, don't make changes here - they will be overwritten.
  2. default-lease-time {{dhcp_global.lease_default}};
  3. max-lease-time {{dhcp_global.lease_max}};
  4. authoritative;
  5. log-facility local7;
  6. {% for domaene in domaenenliste|dictsort %}
  7. subnet {{domaenen[domaene[0]].ffv4_network | ipaddr('network')}} netmask {{domaenen[domaene[0]].ffv4_network | ipaddr('netmask')}} {
  8. interface bat{{domaene[0]}};
  9. range {{domaene[1].dhcp_start}} {{domaene[1].dhcp_ende}};
  10. option routers {{domaenen[domaene[0]].ffv4_network | ipaddr(domaene[1].server_id) | ipaddr('address') }};
  11. {% if public_dns_ip is defined %}
  12. option domain-name-servers {{public_dns_ip }};
  13. {% else %}
  14. option domain-name-servers {{domaenen[domaene[0]].ffv4_network | ipaddr(domaene[1].server_id) | ipaddr('address') }};
  15. {% endif %}
  16. option interface-mtu {{dhcp_global.mtu}};
  17. {% if dhcp_global.domain_search is defined %}
  18. option domain-name "{{dhcp_global.domain_search}}";
  19. option domain-search "{{dhcp_global.domain_search}}";
  20. {% endif %}
  21. }
  22. {% endfor %}