blob: 663ee3a5494d5e1e10aa1cd410bcda6054bbe240 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
server {
enabled = {{ nomad_node_server | bool | lower }}
{% if nomad_node_server | bool -%}
bootstrap_expect = {{ nomad_bootstrap_expect }}
{%- endif %}
{% if nomad_authoritative_region is defined %}
authoritative_region = "{{ nomad_authoritative_region }}"
{% endif %}
{% if nomad_use_consul == False %}
{% if nomad_retry_join | bool -%}
retry_join = [
{%- set comma = joiner(",") -%}
{% for server in nomad_servers -%}
{{ comma() }}"{{ hostvars[server]['nomad_advertise_address'] | ipwrap }}"
{%- endfor -%} ]
retry_max = {{ nomad_retry_max }}
retry_interval = "{{ nomad_retry_interval }}"
{% else -%}
start_join = [
{%- set comma = joiner(",") -%}
{% for server in nomad_servers -%}
{{ comma() }}"{{ hostvars[server]['nomad_advertise_address'] | ipwrap }}"
{%- endfor -%} ]
{%- endif %}
{% endif %}
encrypt = "{{ nomad_encrypt | default('') }}"
{% if nomad_node_gc_threshold -%}
node_gc_threshold = "{{ nomad_node_gc_threshold }}"
{%- endif %}
{% if nomad_job_gc_interval -%}
job_gc_interval = "{{ nomad_job_gc_interval }}"
{%- endif %}
{% if nomad_job_gc_threshold -%}
job_gc_threshold = "{{ nomad_job_gc_threshold }}"
{%- endif %}
{% if nomad_eval_gc_threshold -%}
eval_gc_threshold = "{{ nomad_eval_gc_threshold }}"
{%- endif %}
{% if nomad_deployment_gc_threshold -%}
deployment_gc_threshold = "{{ nomad_deployment_gc_threshold }}"
{%- endif %}
}
|