27 lines
819 B
Plaintext
27 lines
819 B
Plaintext
|
[global]
|
||
|
workgroup = {{ torrent_server.samba.workgroup }}
|
||
|
{% if torrent_server.samba.log is defined %}
|
||
|
log file = {{ torrent_server.samba.log.file }}
|
||
|
log level = {{ torrent_server.samba.log.level|default(1) }}
|
||
|
{% endif %}
|
||
|
|
||
|
{% for share in torrent_server.samba.shares %}
|
||
|
[{{ share.name }}]
|
||
|
path = {{ share.path }}
|
||
|
{% if share.read_only is defined %}
|
||
|
read only = {{ share.read_only }}
|
||
|
{% endif %}
|
||
|
{% if share.writeable is defined %}
|
||
|
writeable = {{ share.writeable }}
|
||
|
{% endif %}
|
||
|
{% if share.browseable is defined %}
|
||
|
browseable = {{ share.browseable }}
|
||
|
{% endif %}
|
||
|
{% if share.read_only is defined %}
|
||
|
read only = {{ share.read_only }}
|
||
|
{% endif %}
|
||
|
valid users = {{ share.valid_users|join(",") }}
|
||
|
create mask = {{ share.create_mask|default("0640") }}
|
||
|
directory mask = {{ share.directory_mask|default("0750") }}
|
||
|
{% endfor %}
|