updated borg state

This commit is contained in:
Paul 2020-10-10 23:21:29 +02:00
parent 475de43f3c
commit 20b8969fa1
4 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@ borg-config-script-{{ key }}:
- template: jinja - template: jinja
- user: root - user: root
- group: root - group: root
- mode: 0755 - mode: 0700
- context: - context:
key: {{ key }} key: {{ key }}
job: {{ job }} job: {{ job }}

View File

@ -3,6 +3,6 @@ borg:
enabled: true enabled: true
working_dir: /opt/borg working_dir: /opt/borg
pip_pkgs: pip_pkgs:
- llfuse
- borgbackup - borgbackup
- llfuse
jobs: {} jobs: {}

View File

@ -3,4 +3,3 @@ include:
- .pkgs - .pkgs
- .install - .install
- .config - .config
#- .schedule

View File

@ -3,9 +3,11 @@
borg-working-dir: borg-working-dir:
file.directory: file.directory:
- name: {{ borg.working_dir }} - name: {{ borg.working_dir }}
- mode: 0700
{% for dir in ['bin', 'logs', 'scripts'] %} {% for dir in ['bin', 'logs', 'scripts'] %}
borg-working-dir-{{ dir }}: borg-working-dir-{{ dir }}:
file.directory: file.directory:
- name: {{ borg.working_dir }}/{{ dir }} - name: {{ borg.working_dir }}/{{ dir }}
- mode: 0700
{% endfor %} {% endfor %}