Files
mgmt/modules/dhcp/files/host.frag.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

20 lines
452 B
Cheetah

{{/* newline for host spacing */}}
# host: {{ .name }}
host {{ .name }} {
hardware ethernet {{ .macaddress }};
fixed-address {{ .valid_fixedaddress }};
{{- if .hostname }}
option host-name "{{ .hostname }}";
{{ end -}}
{{- if .nextserver }}
next-server {{ .nextserver }};
{{ end -}}
{{- if .filename }}
filename "{{ .filename }}";
{{ end -}}
{{- if .veo }}
filename "{{ .filename }}";
option vendor-encapsulated-options {{ .veo }};
{{ end -}}
}