Move all overlay contents to a rootfs subdirectory, which was already supported, and set ownership to root:root. Closes #1078 Signed-off-by: Jonathon Anderson <janderson@ciq.com>
47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
{{- $host := .BuildHost }}
|
|
{{- $time := .BuildTime }}
|
|
{{- $source := .BuildSource }}
|
|
{{range $devname, $netdev := .NetDevs -}}
|
|
{{- $filename := print "ifcfg-" $devname ".conf" }}
|
|
{{- file $filename }}
|
|
# This file is autogenerated by warewulf
|
|
# Host: {{ $host }}
|
|
# Time: {{ $time }}
|
|
# Source: {{ $source }}
|
|
TYPE={{ $netdev.Type }}
|
|
DEVICE={{ $netdev.Device }}
|
|
NAME={{ $devname }}
|
|
{{ if $netdev.MTU -}}
|
|
MTU={{ $netdev.MTU }}
|
|
{{ end -}}
|
|
BOOTPROTO=static
|
|
DEVTIMEOUT=10
|
|
IPADDR={{ $netdev.Ipaddr }}
|
|
NETMASK={{ $netdev.Netmask }}
|
|
{{ if $netdev.Gateway -}}
|
|
GATEWAY={{ $netdev.Gateway }}
|
|
{{ end -}}
|
|
{{ if $netdev.Hwaddr -}}
|
|
HWADDR={{ $netdev.Hwaddr }}
|
|
{{ end -}}
|
|
{{ if $netdev.Type -}}
|
|
TYPE={{ $netdev.Type }}
|
|
{{ end -}}
|
|
{{ if $netdev.OnBoot -}}
|
|
ONBOOT={{ $netdev.OnBoot }}
|
|
{{ end -}}
|
|
IPV6INIT=yes
|
|
IPV6_AUTOCONF=yes
|
|
IPV6_DEFROUTE=yes
|
|
IPV6_FAILURE_FATAL=no
|
|
{{ if $netdev.Ipaddr6 -}}
|
|
IPV6ADDR="{{ $netdev.Ipaddr6 }}"
|
|
{{ end -}}
|
|
{{range $tk, $tv := $netdev.Tags -}}
|
|
{{ $prefix := slice $tk 0 3 -}}
|
|
{{ if eq $prefix "DNS" -}}
|
|
{{ $tk }}={{ $tv }}
|
|
{{ end -}}
|
|
{{ end -}}
|
|
{{ end -}}
|