{#- Get the `tplroot` from `tpldir` #} {%- set fbkusersroot = slspath.split('/')[0] %} {%- from fbkusersroot ~ "/map.jinja" import fbkusers-settings with context %} {% if pillar.fbkusers is defined %} {% for user, options in fbkusers %} {% if options["fsperm"] %} {% for dir in options["fsperm"] %} {{ dir }}-{{ user }}: acl.present: - name: {{ dir }} - acl_type: user - acl_name: {{ user }} - perms: rwx - recurse: True {% endfor %} {% endif %} {% endfor %} {% endif %}