infra4talos/apps-helm/samba4/conf/smb.conf

45 lines
1.7 KiB
Plaintext
Raw Normal View History

[global]
workgroup = {{ .Values.samba.global.workgroup }}
server string = {{ .Values.samba.global.server_string | default "%h server (Samba, Alpine)" }}
security = {{ .Values.samba.global.security | default "user" }}
map to guest = {{ .Values.samba.global.map_to_guest | default "Bad User" }}
encrypt passwords = {{ .Values.samba.global.encrypt_passwords | default "yes" }}
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
disable netbios = yes
server role = {{ .Values.samba.global.server_role | default "standalone" }}
server services = -dns, -nbt
smb ports = {{ .Values.samba.global.smb_ports | default "445" }}
log level = {{ .Values.samba.global.log_level | default "3" }}
{{- range .Values.samba.global.extraLines }}
{{ .key }} = {{ .value }}
{{- end }}
[{{ .Values.samba.share.nameOverride | default "data" }}]
path = /data
comment = {{ .Values.samba.share.comment | default "ZFS" }}
browseable = {{ .Values.samba.share.browseable | default "yes" }}
writable = {{ .Values.samba.share.writable | default "yes" }}
{{- range .Values.samba.share.extraLines }}
{{ .key }} = {{ .value }}
{{- end }}
{{ range .Values.persistence.extraPVCShares }}
[{{ .name }}]
path = /extras/{{ .name }}
comment = {{ .comment | default "ZFS" }}
browseable = {{ .browseable | default "yes" }}
writable = {{ .writable | default "yes" }}
{{- end }}
{{ if .Values.persistence.combineShares }}{{ range .Values.persistence.sharesToCombine }}
[{{ .destName }}]
path = /combined/{{ .destName }}
comment = Magic combined share
browseable = yes
writable = yes
{{- end }}{{ end }}
;EOF way past actual end of file