mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 08:15:54 +02:00
Update to 2023-07-26 19:00
This commit is contained in:
4
roles/vault/templates/post-backup.j2
Normal file
4
roles/vault/templates/post-backup.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
rm -f {{ vault_root_dir }}/backup/vault.snap
|
11
roles/vault/templates/pre-backup.j2
Normal file
11
roles/vault/templates/pre-backup.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
{% if vault_backup_token is defined %}
|
||||
if [ -e /etc/profile.d/vault.sh ]; then
|
||||
source /etc/profile.d/vault.sh
|
||||
fi
|
||||
export VAULT_TOKEN={{ vault_backup_token }}
|
||||
vault operator raft snapshot save {{ vault_root_dir }}/backup/vault.snap
|
||||
{% endif %}
|
Reference in New Issue
Block a user