2020-05-21 21:41:39 +00:00
|
|
|
datacenter = "{{ datacenter }}"
|
|
|
|
|
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-05-21 13:27:09 +00:00
|
|
|
http = "{{ vpn_ip }}"
|
|
|
|
rpc = "{{ vpn_ip }}"
|
|
|
|
serf = "{{ vpn_ip }}"
|
2019-06-01 14:02:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
data_dir = "/var/lib/nomad"
|
|
|
|
|
|
|
|
server {
|
|
|
|
enabled = true
|
2020-05-21 21:41:39 +00:00
|
|
|
bootstrap_expect = {{ groups['cluster_nodes']|length }}
|
2019-06-01 14:02:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
consul {
|
|
|
|
address="127.0.0.1:8500"
|
|
|
|
}
|
|
|
|
|
|
|
|
client {
|
|
|
|
enabled = true
|
|
|
|
#cpu_total_compute = 4000
|
|
|
|
servers = ["127.0.0.1:4648"]
|
2020-07-05 18:36:16 +00:00
|
|
|
options {
|
|
|
|
docker.privileged.enabled = "true"
|
|
|
|
docker.volumes.enabled = "true"
|
|
|
|
}
|
2020-07-01 13:36:22 +00:00
|
|
|
|
|
|
|
network_interface = "wgdeuxfleurs"
|
|
|
|
|
|
|
|
host_network "default" {
|
|
|
|
#cidr = "{{ vpn_ip }}/24"
|
|
|
|
interface = "wgdeuxfleurs"
|
|
|
|
}
|
|
|
|
host_network "public" {
|
|
|
|
#cidr = "{{ public_ip }}/32"
|
|
|
|
interface = "{{ interface }}"
|
|
|
|
}
|
2019-06-01 14:02:49 +00:00
|
|
|
}
|
|
|
|
|