Update to 2022-09-04 01:00

This commit is contained in:
Daniel Berteaud
2022-09-04 01:00:25 +02:00
parent 6c02758759
commit 59c5adc8fa
3 changed files with 12 additions and 3 deletions

View File

@@ -1,9 +1,11 @@
{% if nomad_conf.tls.http %}
{% if nomad_conf.tls.http and nomad_conf.server.enabled %}
export NOMAD_ADDR=https://localhost:{{ nomad_services.http.port }}
export NOMAD_CACERT={{ nomad_conf.tls.ca_file }}
{% if nomad_vault_tls.enabled %}
export NOMAD_CLIENT_CERT={{ nomad_root_dir }}/tls/cli.crt
export NOMAD_CLIENT_KEY={{ nomad_root_dir }}/tls/cli.key
export NOMAD_TLS_SERVER_NAME={{ nomad_conf.server.enabled | ternary('server', 'client') }}.global.nomad
export NOMAD_TLS_SERVER_NAME=server.{{ nomad_conf.region }}.nomad
{% endif %}
{% else %}
# TLS not enabled or not running in server mode
{% endif %}