11743fa4209404da5ca927a3ab7486618d61a958
[csit.git] / resources / tools / testbed-setup / ansible / roles / consul / templates / base.hcl.j2
1 node_name = "{{ consul_node_name }}"
2 datacenter = "{{ consul_datacenter }}"
3
4 bind_addr = "{{ consul_bind_addr }}"
5 client_addr = "{{ consul_client_addr }}"
6 data_dir = "{{ consul_data_dir }}"
7
8 enable_syslog = {{ consul_enable_syslog | bool | lower }}
9 enable_debug = {{ consul_enable_debug | bool | lower }}
10 disable_update_check = {{ consul_disable_update_check | bool | lower }}
11 log_level = "{{ consul_log_level }}"
12
13 server = {{ consul_node_server | bool | lower }}
14 encrypt = "{{ consul_encrypt }}"
15 {% if consul_node_server | bool == True %}
16 bootstrap_expect = {{ consul_bootstrap_expect }}
17 {% endif %}
18 {% if consul_retry_join | bool -%}
19 retry_join = [ {% for ip_port in consul_retry_servers -%} "{{ ip_port }}"{% if not loop.last %}, {% endif %}{%- endfor -%} ]
20 {%- endif %}
21
22 ui = {{ consul_ui | bool | lower }}
23
24 ca_file = "{{ consul_ca_file }}"
25 cert_file = "{{ consul_cert_file }}"
26 key_file = "{{ consul_key_file }}"
27
28 {% if consul_recursors -%}
29 recursors = [ {% for server in consul_recursors -%} "{{ server }}"{% if not loop.last %}, {% endif %}{%- endfor -%} ]
30 {%- endif %}