Hi Joh
Change the closing tag on the for statement to "-%}"
This is, I think, salt specific - according to the jinja specs it will remove whitespace
Your use of single quotes in pattern and repl will be fine.
A simpler (and lazier) formulation would use file.append:
{% for binddir in binddirs %}
configure '{{ binddir }}' to be persistent:
file.append:
- name: /rw/config/qubes-bind-dirs.d/50_user.conf
- text: "binds+=( '{{ binddir }}' )"
- makedirs: True
{% endfor %}
You can drop the explicit file.managed in this case.
unman
--
I **never** presume to speak for the Qubes team.
When I comment in the Forum or in the mailing lists I speak for myself.