mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2023-07-05 19:00
This commit is contained in:
@@ -69,6 +69,28 @@ telemetry {
|
||||
{% if consul_conf.connect.enabled %}
|
||||
connect {
|
||||
enabled = true
|
||||
{% if consul_conf.connect.ca_provider is defined %}
|
||||
ca_provider = "{{ consul_conf.connect.ca_provider }}"
|
||||
ca_config {
|
||||
{% for key in ['address', 'token', 'root_pki_path', 'intermediate_pki_path'] %}
|
||||
{% if consul_conf.connect.ca_config[key] is defined %}
|
||||
{{ key }} = "{{ consul_conf.connect.ca_config[key] }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if consul_conf.connect.ca_config.auth_method is defined %}
|
||||
auth_method {
|
||||
{% if consul_conf.connect.ca_config.auth_method.approle is defined %}
|
||||
type = "approle"
|
||||
params {
|
||||
{% for key in ['role_id', 'secret_id'] %}
|
||||
{{ key }} = "{{ consul_conf.connect.ca_config.auth_method.approle[key] }}"
|
||||
{% endfor %}
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user