paulbsd-salt/states/borg/config.sls

26 lines
631 B
Plaintext
Raw Normal View History

2020-09-22 21:09:05 +02:00
---
{%- from "borg/map.jinja" import borg with context %}
{% for key, job in borg.jobs.items() %}
borg-config-script-{{ key }}:
file.managed:
- name: {{ borg.working_dir }}/scripts/borg_{{ key }}.sh
- source: salt://borg/templates/borg_job.sh.j2
- template: jinja
- user: root
- group: root
2020-10-10 23:21:29 +02:00
- mode: 0700
2020-09-22 21:09:05 +02:00
- context:
key: {{ key }}
job: {{ job }}
working_dir: {{ borg.working_dir }}
{% endfor %}
2021-03-20 10:40:09 +01:00
borg-config-sudo:
file.managed:
- name: /etc/sudoers.d/borg
- source: salt://borg/templates/borg_sudo.j2
- template: jinja
- user: root
- group: root
- mode: 600