1 {% if nomad_use_consul | bool == True %}
3 # The address to the Consul agent.
4 address = "{{ nomad_consul_address }}"
5 token = "{{ nomad_consul_token }}"
6 # The service name to register the server and client with Consul.
7 server_service_name = "{{ nomad_consul_servers_service_name }}"
8 client_service_name = "{{ nomad_consul_clients_service_name }}"
9 tags = {{ nomad_consul_tags | to_json }}
11 # Enables automatically registering the services.
14 # Enabling the server and client to bootstrap using Consul.
15 server_auto_join = true
16 client_auto_join = true