From 20b8969fa18d7aab9cf773d5ace90609ae5207e5 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 10 Oct 2020 23:21:29 +0200 Subject: [PATCH] updated borg state --- states/borg/config.sls | 2 +- states/borg/defaults.yaml | 2 +- states/borg/init.sls | 1 - states/borg/install.sls | 2 ++ 4 files changed, 4 insertions(+), 3 deletions(-) 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 %}