geekoops-next/templates/dnsmasq.j2
felix.niederwanger@suse.com c620206691 first commit
2021-03-25 10:40:23 +01:00

32 lines
938 B
Django/Jinja

################################################################################
## Minimalistic dnsmasq setup for a NEXT server ##
## This file is maintained by the geekoops-next ansible role. ##
## Don't manually edit it, as your changes will be overwritten! ##
################################################################################
PORT={{dns_port}}
{% if dhcp_no_override == true %}
# Disable reuse of the DHCP servername to avoid confusion of old (and broken) clients
dhcp-no-override
{% endif %}
# PXE boot menu
dhcp-boot={{dhcp_boot}}
pxe-prompt="{{prompt}}",{{prompt_timeout}}
{% if legacy %}
pxe-service=x86PC, "Legacy Network Boot", pxelinux
{% endif %}
{% if efi %}
pxe-service=x86-64_EFI,"EFI Network Boot", pxelinux
{% endif %}
{% if dhcp_range != "" %}
dhcp-range={{dhcp_range}}
{% endif %}
# tftp server
enable-tftp
tftp-root={{tftp_root}}