mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2022-09-04 14:00
This commit is contained in:
12
roles/consul/templates/profile.sh.j2
Normal file
12
roles/consul/templates/profile.sh.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
{% if consul_conf.tls.enabled and consul_conf.server %}
|
||||
export CONSUL_HTTP_ADDR=https://localhost:{{ consul_services.https.port }}
|
||||
export CONSUL_HTTP_SSL=true
|
||||
export CONSUL_CACERT={{ consul_conf.tls.defaults.ca_file }}
|
||||
{% if consul_vault_tls.enabled %}
|
||||
export CONSUL_CLIENT_CERT={{ consul_root_dir }}/tls/cli.crt
|
||||
export CONSUL_CLIENT_KEY={{ consul_root_dir }}/tls/cli.key
|
||||
export CONSUL_TLS_SERVER_NAME=server.{{ consul_conf.datacenter | default('dc1') }}.{{ consul_conf.domain | default('consul') }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
# TLS not enabled or not running in server mode
|
||||
{% endif %}
|
Reference in New Issue
Block a user