1 {% if nomad_node_server | bool == True %}
3 enabled = {{ nomad_node_server | bool | lower }}
5 {% if nomad_node_server | bool -%}
6 bootstrap_expect = {{ nomad_bootstrap_expect }}
9 {% if nomad_node_server | bool -%}
13 {% if nomad_authoritative_region is defined %}
14 authoritative_region = "{{ nomad_authoritative_region }}"
17 {% if nomad_use_consul == False %}
18 {% if nomad_retry_join | bool -%}
20 {%- set comma = joiner(",") -%}
21 {% for server in nomad_servers -%}
22 {{ comma() }}"{{ hostvars[server]['nomad_advertise_address'] | ipwrap }}"
24 retry_max = {{ nomad_retry_max }}
25 retry_interval = "{{ nomad_retry_interval }}"
28 {%- set comma = joiner(",") -%}
29 {% for server in nomad_servers -%}
30 {{ comma() }}"{{ hostvars[server]['nomad_advertise_address'] | ipwrap }}"
35 encrypt = "{{ nomad_encrypt | default('') }}"
37 {% if nomad_node_gc_threshold -%}
38 node_gc_threshold = "{{ nomad_node_gc_threshold }}"
41 {% if nomad_job_gc_interval -%}
42 job_gc_interval = "{{ nomad_job_gc_interval }}"
45 {% if nomad_job_gc_threshold -%}
46 job_gc_threshold = "{{ nomad_job_gc_threshold }}"
49 {% if nomad_eval_gc_threshold -%}
50 eval_gc_threshold = "{{ nomad_eval_gc_threshold }}"
53 {% if nomad_deployment_gc_threshold -%}
54 deployment_gc_threshold = "{{ nomad_deployment_gc_threshold }}"