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 +