Files
warewulf/overlays/hosts/rootfs/etc/hosts.ww
Christian Goll 0c6e7cc58a fixes for split overlays
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-10-17 15:39:54 -04:00

15 lines
526 B
Plaintext

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# Warewulf Server
{{$.Ipaddr}} {{$.BuildHost}} warewulf
{{- range $node := $.AllNodes }}
# Entry for {{$node.Id}}
{{- range $devname, $netdev := $node.NetDevs }}
{{- if $netdev.Ipaddr}}
{{$netdev.Ipaddr}} {{if $netdev.Primary}}{{$node.Id}}{{end}} {{$node.Id}}-{{$devname}} {{if $netdev.Device}}{{$node.Id}}-{{$netdev.Device}}{{end}}
{{- end }}
{{- end }}
{{- end }}