mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 18:23:40 +02:00
10 lines
421 B
Django/Jinja
10 lines
421 B
Django/Jinja
{% if nomad_conf.tls.http %}
|
|
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
|
|
{% endif %}
|
|
{% endif %}
|