* Combine provision response handling, add hwaddr and interface to dhcp * Simplify stage cases, add backward compatible uri parse * Move control of image compression to client * Fix kernel search path for ubuntu, buffer template generation * Implement cpio and gz as functions, add log named functions * Generalize fs image creation routine * Combine daemonLogf to generalized wwlog * Fix template newline insertion, update dhcp and hosts tmpl * Update IPXE template to handle non-compressed files * Update DHCP template to set network interfaces and server IP assignment * Update DHCP/hosts templates to choose a host-name self-consistently
21 lines
896 B
Plaintext
21 lines
896 B
Plaintext
{{ IncludeBlock "/etc/hosts" "# Do not edit after this line" }}
|
|
# This block is autogenerated by warewulf
|
|
# Host: {{.BuildHost}}
|
|
# Time: {{.BuildTime}}
|
|
# Source: {{.BuildSource}}
|
|
|
|
# Warewulf Server
|
|
{{$.Ipaddr}} {{$.BuildHost}}
|
|
{{range $node := $.AllNodes}} {{/* for each node */}}
|
|
# Entry for {{$node.Id.Get}}
|
|
{{- range $devname, $netdev := $node.NetDevs}} {{/* for each network device on the node */}}
|
|
{{- if $netdev.Ipaddr.Defined}} {{/* if we have an ip address on this network device */}}
|
|
{{- /* emit the node name as hostname if this is the default */}}
|
|
{{$netdev.Ipaddr.Get}}
|
|
{{- if $netdev.Default.GetB}} {{$node.Id.Get}}
|
|
{{else}} {{$node.Id.Get}}-{{if $netdev.Device.Defined}}{{$netdev.Device.Get}}{{else}}{{$devname}}{{end}}
|
|
{{- end}}
|
|
{{- end}} {{/* end if ip */}}
|
|
{{- end}} {{/* end for each network device */}}
|
|
{{- end}} {{/* end for each node */}}
|