Commit a7ea019f authored by nanahira's avatar nanahira

format dnsmasq.conf

parent 8f9dcafa
...@@ -59,6 +59,7 @@ srv-host=_vlmcs._tcp.{{br.name | regex_replace('^(vm)?br', '')}}.lan,{{services. ...@@ -59,6 +59,7 @@ srv-host=_vlmcs._tcp.{{br.name | regex_replace('^(vm)?br', '')}}.lan,{{services.
{% endif %} {% endif %}
{% endif %} {% endif %}
## end domain for {{br.name}}
{% endif %} {% endif %}
{% if br.dhcpv6Receive is defined and br.dhcpv6Receive %} {% if br.dhcpv6Receive is defined and br.dhcpv6Receive %}
...@@ -81,7 +82,7 @@ dhcp-boot=tag:{{br.name}},{{ br.dhcp.pxe.file }},,{{ br.dhcp.pxe.address }} ...@@ -81,7 +82,7 @@ dhcp-boot=tag:{{br.name}},{{ br.dhcp.pxe.file }},,{{ br.dhcp.pxe.address }}
{% elif dnsmasq.pxe is defined and dnsmasq.pxe %} {% elif dnsmasq.pxe is defined and dnsmasq.pxe %}
### Use default PXE server ### Use default PXE server
{% if dnsmasq.pxe.address is defined %} {% if dnsmasq.pxe.address is defined and dnsmasq.pxe.address and dnsmasq.pxe.file is defined and dnsmasq.pxe.file %}
#### Default PXE server in address/file format #### Default PXE server in address/file format
dhcp-boot=tag:{{br.name}},{{ dnsmasq.pxe.file }},,{{ dnsmasq.pxe.address }} dhcp-boot=tag:{{br.name}},{{ dnsmasq.pxe.file }},,{{ dnsmasq.pxe.address }}
{% elif dnsmasq.pxe == "localhost" or (dnsmasq.pxe.localhost is defined and dnsmasq.pxe.localhost) %} {% elif dnsmasq.pxe == "localhost" or (dnsmasq.pxe.localhost is defined and dnsmasq.pxe.localhost) %}
...@@ -92,6 +93,14 @@ dhcp-boot=tag:efi32-1-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace ...@@ -92,6 +93,14 @@ dhcp-boot=tag:efi32-1-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace
dhcp-boot=tag:efi64-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }} dhcp-boot=tag:efi64-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }}
dhcp-boot=tag:efi64-1-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }} dhcp-boot=tag:efi64-1-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }}
dhcp-boot=tag:efi64-2-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }} dhcp-boot=tag:efi64-2-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }}
{% elif dnsmasq.pxe.address is defined and dnsmasq.pxe.address %}
#### Use remote netboot PXE server
dhcp-boot=tag:bios-{{br.name}},netboot.xyz.kpxe,,{{dnsmasq.pxe.address}}
dhcp-boot=tag:efi32-{{br.name}},netboot.xyz.efi,,{{dnsmasq.pxe.address}}
dhcp-boot=tag:efi32-1-{{br.name}},netboot.xyz.efi,,{{dnsmasq.pxe.address}}
dhcp-boot=tag:efi64-{{br.name}},netboot.xyz.efi,,{{dnsmasq.pxe.address}}
dhcp-boot=tag:efi64-1-{{br.name}},netboot.xyz.efi,,{{dnsmasq.pxe.address}}
dhcp-boot=tag:efi64-2-{{br.name}},netboot.xyz.efi,,{{dnsmasq.pxe.address}}
{% else %} {% else %}
#### Use remote netboot PXE server #### Use remote netboot PXE server
dhcp-boot=tag:bios-{{br.name}},netboot.xyz.kpxe,,{{dnsmasq.pxe}} dhcp-boot=tag:bios-{{br.name}},netboot.xyz.kpxe,,{{dnsmasq.pxe}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment