aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/vault/templates/vault_service_registration_consul.hcl.j2
blob: cd5da1ffb6de197315abc1a9b1214d36eccaa415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
service_registration "consul" {
    address = "{{ vault_service_registration_consul_address }}"
    check_timeout = "{{ vault_service_registration_consul_check_timeout }}"
    disable_registration = "{{ vault_service_registration_consul_disable_registration | bool | lower }}"
    scheme = "{{ vault_service_registration_consul_scheme }}"
    service = "{{ vault_service_registration_consul_service }}"
    service_tags = "{{ vault_service_registration_consul_service_tags }}"
    {% if vault_service_registration_consul_service_address is defined and vault_service_registration_consul_service_address -%}
    service_address = "{{ vault_service_registration_consul_service_address }}"
    {% endif -%}
    {% if vault_service_registration_consul_token is defined and vault_service_registration_consul_token -%}
    token = "{{ vault_service_registration_consul_token }}"
    {% endif -%}
    {% if vault_service_registration_consul_scheme == "https" -%}
    tls_ca_file="{{ vault_service_registration_consul_tls_config_path }}/{{ vault_service_registration_consul_tls_ca_file }}"
    tls_cert_file = "{{ vault_service_registration_consul_tls_config_path }}/{{ vault_service_registration_consul_tls_cert_file }}"
    tls_key_file = "{{ vault_service_registration_consul_tls_config_path }}/{{ vault_service_registration_consul_tls_key_file }}"
    tls_min_version = "{{ vault_service_registration_consul_tls_min_version }}"
    tls_skip_verify = "{{ vault_service_registration_consul_tls_skip_verify }}"
    {% endif %}

}