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"}} {{IncludeFrom $.Container "/etc/passwd"}}
{{Include "/etc/passwd"}}

View File

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

View File

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

View File

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

View File

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