From ce65547c02b756b5af12593945a0ef1a88658ef1 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 28 Aug 2021 12:13:24 +0200 Subject: [PATCH] updated borg state --- states/borg/config.sls | 1 + states/borg/init.sls | 1 - states/borg/templates/borg_sudo.j2 | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/states/borg/config.sls b/states/borg/config.sls index fa243b3..20da6fe 100644 --- a/states/borg/config.sls +++ b/states/borg/config.sls @@ -23,3 +23,4 @@ borg-config-sudo: - user: root - group: root - mode: 600 + - check_cmd: /usr/sbin/visudo -c -f diff --git a/states/borg/init.sls b/states/borg/init.sls index 030b82d..dfdbe60 100644 --- a/states/borg/init.sls +++ b/states/borg/init.sls @@ -1,6 +1,5 @@ --- include: - - dkron - .pkgs - .install - .config diff --git a/states/borg/templates/borg_sudo.j2 b/states/borg/templates/borg_sudo.j2 index 8cd3d72..ce2d314 100644 --- a/states/borg/templates/borg_sudo.j2 +++ b/states/borg/templates/borg_sudo.j2 @@ -1,3 +1,4 @@ {%- from "borg/map.jinja" import borg with context %} ## Sudo rights for borg run_user -{{ borg.run_user }} ALL=(ALL) NOPASSWD: {{ borg.working_dir }}/scripts/borg_*.sh \ No newline at end of file +{{ borg.run_user }} ALL=(ALL) NOPASSWD: {{ borg.working_dir }}/scripts/borg_*.sh +