paulbsd-salt/states/borg/install.sls
2020-10-10 23:21:29 +02:00

14 lines
312 B
Plaintext

---
{%- from "borg/map.jinja" import borg with context %}
borg-working-dir:
file.directory:
- name: {{ borg.working_dir }}
- mode: 0700
{% for dir in ['bin', 'logs', 'scripts'] %}
borg-working-dir-{{ dir }}:
file.directory:
- name: {{ borg.working_dir }}/{{ dir }}
- mode: 0700
{% endfor %}