Merge pull request #350 from hpcng/nfs-cleanup
removed old nfs style from config
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -8,9 +8,6 @@
|
||||
{{- range .Nfs.ExportsExtended }}
|
||||
{{ .Path }} {{ $network }}/{{ $netmask }}({{ .ExportOptions }})
|
||||
{{- end }}
|
||||
{{range .Nfs.Exports }}
|
||||
{{ . }} {{ $network }}/{{ $netmask }}(rw,sync)
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{ abort }}
|
||||
{{- end }}
|
||||
|
||||
@@ -15,6 +15,3 @@ proc /proc proc defaults 0 0
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- range .Nfs.Exports }}
|
||||
{{ $IP }}:{{ . }} {{ . }} nfs defaults 0 0
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user