Infra: Cleanup Nomad configs
[csit.git] / fdio.infra.ansible / roles / nomad / templates / consul.hcl.j2
1 {% if nomad_use_consul | bool == True %}
2 consul {
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 }}
10
11     # Enables automatically registering the services.
12     auto_advertise = true
13
14     # Enabling the server and client to bootstrap using Consul.
15     server_auto_join = true
16     client_auto_join = true
17 }
18 {% endif %}