diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index 1853d59..45c42a0 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -57,6 +57,16 @@ {% if share.comment is defined %} comment = {{ share.comment }} {% 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('/')) }} public = {{ share.public|default('no') }} {% if share.valid_users is defined %}