2021-10-17 11:55:21 +00:00
|
|
|
#bind-interfaces
|
|
|
|
#server=1.1.1.1
|
|
|
|
#server=1.0.0.1
|
2021-10-14 13:15:37 +00:00
|
|
|
domain-needed
|
|
|
|
bogus-priv
|
|
|
|
#dhcp-range
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-range={{ pillar['network']['interface'] }},{{ pillar['network']['ip'][0:-1] }}50,{{ pillar['network']['ip'][0:-1] }}150,12h
|
|
|
|
dhcp-range={{ pillar['network']['wireless'] }},{{ pillar['network']['ip'][0:-1] }}50,{{ pillar['network']['ip'][0:-1] }}150,12h
|
2021-10-14 13:15:37 +00:00
|
|
|
{% for vlan in pillar['network']['vlan'] -%}
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-range={{ pillar['network']['interface'] }}.{{ vlan['id'] }},{{ vlan['address'][0:-1] }}50,{{ vlan['address'][0:-1] }}150,12h
|
2021-10-14 13:15:37 +00:00
|
|
|
{% endfor %}
|
|
|
|
#gateway
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-option={{ pillar['network']['interface'] }},3,{{ pillar['network']['ip'] }}
|
|
|
|
dhcp-option={{ pillar['network']['wireless'] }},3,{{ pillar['network']['ip'] }}
|
2021-10-14 13:15:37 +00:00
|
|
|
{% for vlan in pillar['network']['vlan'] -%}
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-option={{ pillar['network']['interface'] }}.{{ vlan['id'] }},3,{{ vlan['address'] }}
|
2021-10-14 13:15:37 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
# dns-server
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-option={{ pillar['network']['interface'] }},6,{{ pillar['network']['ip'] }}
|
|
|
|
dhcp-option={{ pillar['network']['wireless'] }},6,{{ pillar['network']['ip'] }}
|
2021-10-14 13:15:37 +00:00
|
|
|
{% for vlan in pillar['network']['vlan'] -%}
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-option={{ pillar['network']['interface'] }}.{{ vlan['id'] }},6,{{ vlan['address'] }}
|
2021-10-14 13:15:37 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
#ntp
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-option={{ pillar['network']['interface'] }},option:ntp-server,{{ pillar['network']['ip'] }}
|
|
|
|
dhcp-option={{ pillar['network']['wireless'] }},option:ntp-server,{{ pillar['network']['ip'] }}
|
2021-10-14 13:15:37 +00:00
|
|
|
{% for vlan in pillar['network']['vlan'] -%}
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-option={{ pillar['network']['interface'] }}.{{ vlan['id'] }},option:ntp-server,{{ vlan['address'] }}
|
2021-10-14 13:15:37 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
#PXE
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-option={{ pillar['network']['interface'] }},66,{{ pillar['network']['ip'] }}
|
|
|
|
dhcp-option={{ pillar['network']['wireless'] }},66,{{ pillar['network']['ip'] }}
|
2021-10-14 13:15:37 +00:00
|
|
|
{% for vlan in pillar['network']['vlan'] -%}
|
2021-10-17 11:55:21 +00:00
|
|
|
dhcp-option={{ pillar['network']['interface'] }}.{{ vlan['id'] }},66,{{ vlan['address'] }}
|
2021-10-14 13:15:37 +00:00
|
|
|
{% endfor %}
|
|
|
|
enable-tftp
|
|
|
|
tftp-root=/srv/tftpboot
|
|
|
|
dhcp-match=set:efi-x86_64,option:client-arch,7
|
|
|
|
dhcp-match=set:efi-x86_64,option:client-arch,9
|
|
|
|
dhcp-match=set:efi-x86,option:client-arch,6
|
|
|
|
dhcp-match=set:bios,option:client-arch,0
|
|
|
|
dhcp-boot=tag:efi-x86_64,bootx64.efi
|
|
|
|
dhcp-boot=tag:efi-x86,syslinux.efi
|
|
|
|
dhcp-boot=tag:bios,pxelinux.0
|