From 3599f491b46a33f2e292a18a1b4c7774757c2f87 Mon Sep 17 00:00:00 2001 From: Slavek Jurkowski Date: Wed, 3 May 2017 02:15:34 +0000 Subject: [PATCH] add samba vfs objects to template --- templates/smb.conf.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 %}