mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
12 lines
374 B
Django/Jinja
12 lines
374 B
Django/Jinja
#!/bin/sh
|
|
|
|
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 \
|
|
{% endif %}
|
|
{{ nomad_root_dir }}/bin/nomad operator snapshot save {{ nomad_root_dir }}/backup/nomad.snap
|