aboutsummaryrefslogtreecommitdiff
path: root/os/config/roles/nomad/templates/nomad.hcl.j2
blob: b0be6a80774b6db18825b1d3d3a1ff11e8c7b187 (plain) (blame)
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
addresses {
  http = "0.0.0.0"
  rpc = "0.0.0.0"
  serf = "0.0.0.0"
}

advertise {
  http = "{{ public_ip }}"
  rpc = "{{ public_ip }}"
  serf = "{{ public_ip }}"
}

data_dir = "/var/lib/nomad"

server {
  enabled          = true
  bootstrap_expect = 3
}

consul {
  address="127.0.0.1:8500"
}

client {
  enabled = true
  #cpu_total_compute = 4000
  servers = ["127.0.0.1:4648"]
  network_interface = "{{ interface }}"
  options {
    docker.privileged.enabled = "true"
    docker.volumes.enabled = "true"
  } 
}