IPv6: /etc/exports overlay
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
This commit is contained in:
@@ -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)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user