aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/nomad/templates/base.hcl.j2
blob: cd7fb54f9ccace3e222f7c9855d37b4992e12ba5 (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
name = "{{ nomad_node_name }}"
region = "{{ nomad_region }}"
datacenter = "{{ nomad_datacenter }}"

enable_debug = {{ nomad_enable_debug | bool | lower }}
disable_update_check = {{ nomad_disable_update_check | bool | lower }}

bind_addr = "{{ nomad_bind_address }}"
advertise {
    http = "{{ nomad_advertise_address }}:{{ nomad_ports.http }}"
    rpc = "{{ nomad_advertise_address }}:{{ nomad_ports.rpc }}"
    serf = "{{ nomad_advertise_address }}:{{ nomad_ports.serf }}"
}
ports {
    http = {{ nomad_ports['http'] }}
    rpc = {{ nomad_ports['rpc'] }}
    serf = {{ nomad_ports['serf'] }}
}

data_dir = "{{ nomad_data_dir }}"

log_level = "{{ nomad_log_level }}"
enable_syslog = {{ nomad_syslog_enable | bool | lower }}

leave_on_terminate = {{ nomad_leave_on_terminate | bool | lower }}
leave_on_interrupt = {{ nomad_leave_on_interrupt | bool | lower }}