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:
@@ -1,4 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
{% if consul_conf.server %}
|
||||
if [ -e /etc/profile.d/vault.sh ]; then
|
||||
source /etc/profile.d/vault.sh
|
||||
fi
|
||||
if [ -e /etc/profile.d/consul.sh ]; then
|
||||
source /etc/profile.d/consul.sh
|
||||
fi
|
||||
{% if consul_conf.acl.enabled and consul_backup_token is defined %}
|
||||
export CONSUL_HTTP_TOKEN={{ consul_backup_token }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
consul snapshot save {{ consul_root_dir }}/backup/consul.snap
|
||||
|
Reference in New Issue
Block a user