Files
mgmt/modules/dhcp/files/dhcpd.conf.tmpl
James Shubin 907d2ad1a1 modules: dhcp: Add an mgmt module for managing dhcpd
This is not perfect, but it's a good start, and it shows how a module
might be structured.
2024-11-18 15:12:01 -05:00

56 lines
1.2 KiB
Cheetah

#
# This file has been generated by mgmt config. Do not edit.
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp-server/dhcpd.conf.example
# see dhcpd.conf(5) man page
#
#
# global option definitions
#
{{ if .domain -}}
option domain-name "{{ .domain }}";
{{ end -}}
{{ if .dns -}}
option domain-name-servers {{ .dns }};
{{ end -}}
#
# dhcpd settings
#
{{ if .omapiport -}}
#omapi-port {{ .omapiport }}; # FIXME !
{{ end -}}
{{ if .serveridentifier -}}
#server-identifier {{ .serveridentifier }}; # FIXME !
{{ end -}}
default-lease-time {{ .defaultleasetime }};
max-lease-time {{ .maxleasetime }};
# Use this to enable / disable dynamic dns updates globally.
#ddns-update-style none;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
{{ if .authoritative -}}
authoritative;
{{ else -}}
#authoritative; # not authoritative!
{{ end -}}
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
#
# include all the subnet definitions
#
include "/etc/dhcp/subnets.conf";
#
# include all the hosts
#
include "/etc/dhcp/hosts.conf";