add samba vfs objects to template

This commit is contained in:
Slavek Jurkowski 2017-05-03 02:15:34 +00:00
parent 2bdb99f39a
commit 3599f491b4

View File

@ -57,6 +57,16 @@
{% if share.comment is defined %} {% if share.comment is defined %}
comment = {{ share.comment }} comment = {{ share.comment }}
{% endif %} {% endif %}
{% if share.vfs_objects|length > 0 %}
vfs objects = {% for obj in share.vfs_objects %}{{obj.name}} {% endfor %}
{% for obj in share.vfs_objects %}
{% if obj.options|length > 0 %}
{% for opt in obj.options %}
{{ obj.name }}:{{ opt.name }} = {{ opt.value }}
{% endfor %}
{% endif %}
{% endfor %}{% endif %}
path = {{ share.path|default([samba_shares_root,share.name]|join('/')) }} path = {{ share.path|default([samba_shares_root,share.name]|join('/')) }}
public = {{ share.public|default('no') }} public = {{ share.public|default('no') }}
{% if share.valid_users is defined %} {% if share.valid_users is defined %}