Merge pull request #373 from mslacken/overlay-fixes

various fixes in overlays
This commit is contained in:
Christian Goll
2022-04-09 13:35:00 +02:00
committed by GitHub
5 changed files with 7 additions and 9 deletions

View File

@@ -1,3 +1 @@
root::0:0:root:/root:/bin/bash
{{IncludeFrom $.Container "/etc/passwd"}}
{{Include "/etc/passwd"}}

View File

@@ -7,6 +7,6 @@ Network:
{{- range $devname, $netdev := .NetDevs}}
{{$devname}}: {{$netdev.Device}}
{{$devname}}: {{$netdev.IpCIDR}}
{{if $netdev.Ipaddr6 }} {{$devname}}: {{$netdev.Ipaddr6}}{{ end }}
{{if $netdev.Hwaddr }} {{$devname}}: {{$netdev.Hwaddr}}{{ end }}
{{if $netdev.Ipaddr6 }} {{$devname}}: {{$netdev.Ipaddr6}}{{ end -}}
{{if $netdev.Hwaddr }} {{$devname}}: {{$netdev.Hwaddr}}{{ end -}}
{{end}}

View File

@@ -25,7 +25,7 @@ IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
{{ if $.NetDevs.default.Ipaddr6 -}}
IPV6ADDR="{{ $.NetDevs.default.Ipaddr6 }}"
{{ if $netdev.Ipaddr6 -}}
IPV6ADDR="{{ $netdev.Ipaddr6 }}"
{{ end -}}
{{ end -}}

View File

@@ -5,7 +5,7 @@ After=local-fs.target
[Service]
Type=notify
ExecStart=/warewulf/bin/wwclient
ExecStart=/warewulf/wwclient
ExecReload=/bin/kill -s SIGHUP "$MAINPID"
PIDFile=/var/run/wwclient.pid
TimeoutSec=60

View File

@@ -38,10 +38,10 @@ Source: {{ $source }}
<privacy>prefer-public</privacy>
<accept-redirects>false</accept-redirects>
</ipv6>
{{ if $.NetDevs.default.Ipaddr6 -}}
{{ if $netdev.Ipaddr6 -}}
<ipv6:static>
<address>
<local>{{ $.NetDevs.default.Ipaddr6 }}</local>
<local>{{ $netdev.Ipaddr6 }}</local>
</address>
</ipv6:static>
{{ end -}}