2022-08-02 18:00:20 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
2022-09-02 18:00:22 +02:00
|
|
|
{% if nomad_conf.tls.http %}
|
|
|
|
NOMAD_ADDR=https://localhost:{{ nomad_services.http.port }} \
|
|
|
|
NOMAD_CACERT={{ nomad_conf.tls.ca_file }} \
|
|
|
|
{% endif %}
|
2022-09-04 00:00:24 +02:00
|
|
|
{% if nomad_vault_tls.enabled %}
|
2022-09-02 18:00:22 +02:00
|
|
|
NOMAD_CLIENT_CERT={{ nomad_root_dir }}/tls/cli.crt \
|
|
|
|
NOMAD_CLIENT_KEY={{ nomad_root_dir }}/tls/cli.key \
|
|
|
|
{% endif %}
|
2022-08-02 18:00:20 +02:00
|
|
|
{{ nomad_root_dir }}/bin/nomad operator snapshot save {{ nomad_root_dir }}/backup/nomad.snap
|