Ansible: Hashicorp Consul
[csit.git] / resources / tools / testbed-setup / ansible / roles / consul / templates / consul.hcl.j2
1 consul {
2     address = "{{ consul_address }}"
3     auth = "{{ consul_auth }}"
4     auto_advertise = {{ consul_auto_advertise | bool | lower }}
5     ca_file = "{{ consul_ca_file }}"
6     cert_file = "{{ consul_cert_file }}"
7     checks_use_advertise = {{ consul_checks_use_advertise | bool | lower }}
8     client_auto_join = {{ consul_client_auto_join | bool | lower }}
9     client_service_name = "{{ consul_client_service_name }}"
10     key_file = "{{ consul_key_file }}"
11     server_service_name = "{{ consul_server_service_name }}"
12     server_auto_join = {{ consul_server_auto_join | bool | lower }}
13     ssl = {{ consul_ssl | bool | lower }}
14     verify_ssl = {{ consul_verify_ssl | bool | lower }}
15
16 {% if consul_ACL_token_set == True %}
17     token = "{{ consul_token }}"
18 {% endif %}
19
20 }