aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-10-28 15:53:22 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-10-28 15:53:22 +0100
commitaba3ba723ca23d2da2e6fb59700c033f2d6775c0 (patch)
tree0cd33e32dc8d768b23ee9e5582375b4d4316261e
parentf9013d9ca5440481c4bbdeddf5897a1e6d0dfc78 (diff)
downloadinfrastructure-aba3ba723ca23d2da2e6fb59700c033f2d6775c0.tar.gz
infrastructure-aba3ba723ca23d2da2e6fb59700c033f2d6775c0.zip
Nomad now speaks IPv6
-rw-r--r--os/config/roles/nomad/templates/nomad.hcl.j216
1 files changed, 8 insertions, 8 deletions
diff --git a/os/config/roles/nomad/templates/nomad.hcl.j2 b/os/config/roles/nomad/templates/nomad.hcl.j2
index 37952db..b5d5d46 100644
--- a/os/config/roles/nomad/templates/nomad.hcl.j2
+++ b/os/config/roles/nomad/templates/nomad.hcl.j2
@@ -1,13 +1,13 @@
addresses {
- http = "0.0.0.0"
- rpc = "0.0.0.0"
- serf = "0.0.0.0"
+ http = "::"
+ rpc = "::"
+ serf = "::"
}
advertise {
- http = "{{ ipv4 }}"
- rpc = "{{ ipv4 }}"
- serf = "{{ ipv4 }}"
+ http = "{{ ipv6 }}"
+ rpc = "{{ ipv6 }}"
+ serf = "{{ ipv6 }}"
}
data_dir = "/var/lib/nomad"
@@ -18,13 +18,13 @@ server {
}
consul {
- address="127.0.0.1:8500"
+ address="[::1]:8500"
}
client {
enabled = true
#cpu_total_compute = 4000
- servers = ["127.0.0.1:4648"]
+ servers = ["[::1]:4648"]
network_interface = "{{ interface }}"
options {
docker.privileged.enabled = "true"