IPv6: /etc/exports overlay

Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
This commit is contained in:
Timothy Middelkoop
2025-11-27 23:05:13 +00:00
parent 3aded908ce
commit 484965dbae
2 changed files with 4 additions and 5 deletions

View File

@@ -314,8 +314,8 @@ const host_exports string = `backupFile: true
writeFile: true
Filename: etc/exports
# This file is autogenerated by warewulf
/home 192.168.0.0/255.255.255.0(rw,sync)
/opt 192.168.0.0/255.255.255.0(ro,sync,no_root_squash)
/home 192.168.0.0/255.255.255.0(rw,sync) 2001:db8::/64(rw,sync)
/opt 192.168.0.0/255.255.255.0(ro,sync,no_root_squash) 2001:db8::/64(ro,sync,no_root_squash)
`

View File

@@ -1,9 +1,8 @@
{{ if .Nfs.Enabled -}}
# This file is autogenerated by warewulf
{{- $network := .Network }}
{{- $netmask := .Netmask }}
{{- range .Nfs.ExportsExtended }}
{{ .Path }} {{ $network }}/{{ $netmask }}({{ .ExportOptions }})
{{ .Path }} {{ $.Network }}/{{ $.Netmask }}({{ .ExportOptions }})
{{- if $.Ipv6 }} {{ $.NetworkCIDR6 }}({{ .ExportOptions }}){{ end }}
{{- end }}
{{- else }}
{{ abort }}