Merge pull request #350 from hpcng/nfs-cleanup

removed old nfs style from config
This commit is contained in:
Christian Goll
2022-04-06 21:29:07 +02:00
committed by GitHub
3 changed files with 0 additions and 7 deletions

View File

@@ -48,7 +48,6 @@ type TftpConf struct {
type NfsConf struct {
Enabled bool `default:"true" yaml:"enabled"`
Exports []string `yaml:"exports"`
ExportsExtended []*NfsExportConf `yaml:"export paths"`
SystemdName string `yaml:"systemd name"`
}

View File

@@ -8,9 +8,6 @@
{{- range .Nfs.ExportsExtended }}
{{ .Path }} {{ $network }}/{{ $netmask }}({{ .ExportOptions }})
{{- end }}
{{range .Nfs.Exports }}
{{ . }} {{ $network }}/{{ $netmask }}(rw,sync)
{{- end }}
{{- else }}
{{ abort }}
{{- end }}

View File

@@ -15,6 +15,3 @@ proc /proc proc defaults 0 0
{{- end }}
{{- end }}
{{- end }}
{{- range .Nfs.Exports }}
{{ $IP }}:{{ . }} {{ . }} nfs defaults 0 0
{{- end }}