feat(api): Use newest API messages after rls2402
[csit.git] / fdio.infra.ansible / roles / nomad / templates / server.hcl.j2
1 server {
2     enabled = {{ nomad_node_server | bool | lower }}
3
4     {% if nomad_node_server | bool -%}
5         bootstrap_expect = {{ nomad_bootstrap_expect }}
6     {%- endif %}
7
8     encrypt = "{{ nomad_encrypt }}"
9
10     {% if nomad_node_gc_threshold -%}
11         node_gc_threshold = "{{ nomad_node_gc_threshold }}"
12     {%- endif %}
13
14     {% if nomad_job_gc_interval -%}
15         job_gc_interval = "{{ nomad_job_gc_interval }}"
16     {%- endif %}
17
18     {% if nomad_job_gc_threshold -%}
19         job_gc_threshold = "{{ nomad_job_gc_threshold }}"
20     {%- endif %}
21
22     {% if nomad_eval_gc_threshold -%}
23         eval_gc_threshold = "{{ nomad_eval_gc_threshold }}"
24     {%- endif %}
25
26     {% if nomad_deployment_gc_threshold -%}
27         deployment_gc_threshold = "{{ nomad_deployment_gc_threshold }}"
28     {%- endif %}
29
30     {% if nomad_retry_join | bool -%}
31     server_join {
32         retry_join = [ {% for ip_port in nomad_retry_servers -%} "{{ ip_port }}" {% if not loop.last %},{% endif %}{%- endfor -%} ]
33     }
34     {%- endif %}
35
36 }