Infra: Ansible Nomad
[csit.git] / resources / tools / testbed-setup / ansible / roles / nomad / templates / base.hcl.j2
1 name = "{{ nomad_name }}"
2 region = "{{ nomad_region }}"
3 datacenter = "{{ nomad_datacenter }}"
4
5 bind_addr = "{{ nomad_bind_addr }}"
6 data_dir = "{{ nomad_data_dir }}"
7
8 enable_syslog = {{ nomad_syslog_enable | bool | lower }}
9 enable_debug = {{ nomad_enable_debug | bool | lower }}
10 disable_update_check = {{ nomad_disable_update_check | bool | lower }}
11 log_level = "{{ nomad_log_level }}"
12
13 {% if ( nomad_ca_file ) and
14       ( nomad_cert_file ) and
15       ( nomad_key_file )
16 %}
17 tls {
18     http = {{ nomad_http | bool | lower }}
19     rpc = {{ nomad_rpc | bool | lower }}
20     ca_file = "{{ nomad_ca_file }}"
21     cert_file = "{{ nomad_cert_file }}"
22     key_file = "{{ nomad_key_file }}"
23 }
24 {% endif %}