mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-31 03:35:45 +02:00
Update to 2023-07-26 19:00
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
{% if nomad_conf.tls.http %}
|
||||
NOMAD_ADDR=https://localhost:{{ nomad_services.http.port }} \
|
||||
NOMAD_CACERT={{ nomad_conf.tls.ca_file }} \
|
||||
NOMAD_CLIENT_CERT={{ nomad_root_dir }}/tls/cli.crt \
|
||||
NOMAD_CLIENT_KEY={{ nomad_root_dir }}/tls/cli.key \
|
||||
{% if nomad_conf.server.enabled %}
|
||||
if [ -e /etc/profile.d/vault.sh ]; then
|
||||
source /etc/profile.d/vault.sh
|
||||
fi
|
||||
if [ -e /etc/profile.d/nomad.sh ]; then
|
||||
source /etc/profile.d/nomad.sh
|
||||
fi
|
||||
{% if nomad_conf.acl.enabled and nomad_backup_token is defined %}
|
||||
export NOMAD_TOKEN={{ nomad_backup_token }}
|
||||
{% endif %}
|
||||
{{ nomad_root_dir }}/bin/nomad operator snapshot save {{ nomad_root_dir }}/backup/nomad.snap
|
||||
{% endif %}
|
||||
/usr/local/bin/nomad operator snapshot save {{ nomad_root_dir }}/backup/nomad.snap
|
||||
|
Reference in New Issue
Block a user