Revert "fix(jobspec): Delete ipsec nfv density tests"
[csit.git] / fdio.infra.ansible / roles / nomad / templates / tls.hcl.j2
1 {% if nomad_use_tls | bool %}
2 tls {
3     # Specifies the path to the CA certificate to use for Nomad's TLS
4     # communication.
5     ca_file = "{{ nomad_tls_ca_file }}"
6
7     # Specifies the path to the certificate file used for Nomad's TLS
8     # communication.
9     cert_file = "{{ nomad_tls_cert_file }}"
10
11     # Specifies the path to the key file to use for Nomad's TLS communication.
12     key_file = "{{ nomad_tls_key_file }}"
13
14     # Specifies if TLS should be enabled on the HTTP endpoints on the Nomad
15     # agent, including the API.
16     http = {{ nomad_tls_http | bool | lower }}
17
18     # Specifies if TLS should be enabled on the RPC endpoints and Raft traffic
19     # between the Nomad servers. Enabling this on a Nomad client makes the
20     # client use TLS for making RPC requests to the Nomad servers.
21     rpc = {{ nomad_tls_rpc | bool | lower }}
22
23     # This option should be used only when the cluster is being upgraded to
24     # TLS, and removed after the migration is complete. This allows the agent
25     # to accept both TLS and plaintext traffic.
26     rpc_upgrade_mode = {{ nomad_tls_rpc_upgrade_mode | bool | lower }}
27
28     # Specifies agents should require client certificates for all incoming
29     # HTTPS requests. The client certificates must be signed by the same CA
30     # as Nomad.
31     verify_https_client = {{ nomad_tls_verify_https_client | bool | lower }}
32
33     # Specifies if outgoing TLS connections should verify the server's hostname.
34     verify_server_hostname = {{ nomad_tls_verify_server_hostname | bool | lower }}
35 }
36 {% endif %}