consul {
  address = "127.0.0.1:€# lookup('env','CONSUL_HTTPS_PORT') | default(8501, true) #€"
  grpc_address = "{{ wireguard.privateIp }}:€# lookup('env','CONSUL_GRPC_TLS_PORT') | default(8503, true) #€"
  ssl = true
  ca_file = "€# layerops_tls_ca_file #€"
  grpc_ca_file = "€# layerops_tls_ca_file #€"
  token = "{{ consul.tokens.nomad }}"

  # The service name to register the server and client with Consul.
  server_service_name = "nomad"
{%- if environmentUuid is defined and environmentUuid != "" %}
  client_service_name = "{{ environmentUuid }}-nomad-client"
{%- else %}
  client_service_name = "nomad-client"
{%- endif %}
}
