feat(backup): Default to root user using snapper

If no primary user is defined in the playbooks, we give only the root
user access to the snapper command by default.
This commit is contained in:
Marty Oehme 2025-02-28 21:40:02 +01:00
parent b3b280fbe4
commit 2400bbf1af
Signed by: Marty
GPG key ID: 4E535BC19C61886E
3 changed files with 4 additions and 2 deletions
roles/backup
defaults
templates/snapper-configurations

View file

@ -0,0 +1,2 @@
---
# user_name: # required for snapper templates

View file

@ -14,7 +14,7 @@ SPACE_LIMIT="0.5"
FREE_LIMIT="0.2"
# users and groups allowed to work with config
ALLOW_USERS="{{ user_name }}"
ALLOW_USERS="{{ user_name | default('root') }}"
ALLOW_GROUPS=""
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots

View file

@ -14,7 +14,7 @@ SPACE_LIMIT="0.5"
FREE_LIMIT="0.2"
# users and groups allowed to work with config
ALLOW_USERS="{{ user_name }}"
ALLOW_USERS="{{ user_name | default('root') }}"
ALLOW_GROUPS=""
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots