aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/vault/templates/vault_backend_consul.j2
blob: 32f2fdcb017730e08eb3bf944570247abaf3ec91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
backend "consul" {
    address = "{{ vault_consul }}"
    path = "{{ vault_consul_path }}"
    service = "{{ vault_consul_service }}"
    {% if vault_consul_token is defined and vault_consul_token -%}
    token = "{{ vault_consul_token }}"
    {% endif -%}
    scheme = "{{ vault_consul_scheme }}"
    {% if vault_tls_gossip | bool -%}
    tls_cert_file = "{{ vault_backend_tls_config_path }}/{{ vault_backend_tls_cert_file }}"
    tls_key_file = "{{ vault_backend_tls_config_path }}/{{ vault_backend_tls_key_file }}"
    tls_ca_file="{{ vault_backend_tls_config_path }}/{{ vault_backend_tls_ca_file }}"
    {% endif %}

}