Some minor runtime template updates
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
{{IncludeFrom $.Container "/etc/group"}}
|
||||
{{Include "/etc/group"}}
|
||||
{{Include "/etc/group"}}
|
||||
@@ -1 +1,19 @@
|
||||
{{Include "/etc/hosts"}}
|
||||
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
|
||||
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
|
||||
|
||||
|
||||
|
||||
# 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 primary */}}
|
||||
{{$netdev.Ipaddr.Get}} {{$node.Id.Get}}-{{$devname}}
|
||||
{{- if $netdev.Device.Defined}} {{$node.Id.Get}}-{{$netdev.Device.Get}}{{end}}
|
||||
{{- if $netdev.Primary.GetB}} {{$node.Id.Get}}{{end}}
|
||||
{{- end}} {{/* end if ip */}}
|
||||
{{- end}} {{/* end for each network device */}}
|
||||
{{- end}} {{/* end for each node */}}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
# Uncomment the following line to enable passwordless root login
|
||||
# root::0:0:root:/root:/bin/bash
|
||||
{{IncludeFrom $.Container "/etc/passwd"}}
|
||||
{{Include "/etc/passwd"}}
|
||||
Reference in New Issue
Block a user