diff --git a/states/borg/config.sls b/states/borg/config.sls index 89a634f..fe3ad54 100644 --- a/states/borg/config.sls +++ b/states/borg/config.sls @@ -8,7 +8,7 @@ borg-config-script-{{ key }}: - template: jinja - user: root - group: root - - mode: 0755 + - mode: 0700 - context: key: {{ key }} job: {{ job }} diff --git a/states/borg/defaults.yaml b/states/borg/defaults.yaml index 4af31f9..1e53ca1 100644 --- a/states/borg/defaults.yaml +++ b/states/borg/defaults.yaml @@ -3,6 +3,6 @@ borg: enabled: true working_dir: /opt/borg pip_pkgs: - - llfuse - borgbackup + - llfuse jobs: {} diff --git a/states/borg/init.sls b/states/borg/init.sls index cd88051..dfdbe60 100644 --- a/states/borg/init.sls +++ b/states/borg/init.sls @@ -3,4 +3,3 @@ include: - .pkgs - .install - .config - #- .schedule diff --git a/states/borg/install.sls b/states/borg/install.sls index 479b7bb..ba61090 100644 --- a/states/borg/install.sls +++ b/states/borg/install.sls @@ -3,9 +3,11 @@ 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 %}