Infra: Backend infra upgrade
[csit.git] / fdio.infra.ansible / roles / nomad / templates / tls.hcl.j2
1 {% if ( nomad_ca_file ) and
2       ( nomad_cert_file ) and
3       ( nomad_key_file )
4 %}
5 tls {
6     http = {{ nomad_http | bool | lower }}
7     rpc = {{ nomad_rpc | bool | lower }}
8     verify_server_hostname = {{ nomad_verify_server_hostname | bool | lower }}
9     verify_https_client = {{ nomad_verify_https_client | bool | lower }}
10     ca_file = "{{ nomad_ca_file }}"
11     cert_file = "{{ nomad_cert_file }}"
12     key_file = "{{ nomad_key_file }}"
13 }
14 {% endif %}