infrastructure/os/config/roles/nomad/templates/nomad.hcl.j2

35 lines
500 B
Text
Raw Permalink Normal View History

2019-06-01 14:02:49 +00:00
addresses {
http = "0.0.0.0"
rpc = "0.0.0.0"
serf = "0.0.0.0"
}
advertise {
2020-10-22 15:57:02 +00:00
http = "{{ ipv4 }}"
rpc = "{{ ipv4 }}"
serf = "{{ ipv4 }}"
2019-06-01 14:02:49 +00:00
}
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 }}"
2020-07-05 18:36:16 +00:00
options {
docker.privileged.enabled = "true"
docker.volumes.enabled = "true"
}
2019-06-01 14:02:49 +00:00
}