From d3ada90d83acdbdec38b89c1b039ff07878f5b7d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 23 May 2020 17:44:49 +0200 Subject: Fix nomad ip address Remove the networ_interface parameter in nomad config This means that nomad will now autodetect its own ip address by looking at the default route. Thus nodes in a LAN behind a NAT will get their LAN address, and internet nodes will get their public address. They won't get their VPN addresses. This seems not to break Consul's use of VPN addresses to address services, and fixes attr.unique.network.ip-address for DiploNAT. --- ansible/roles/nomad/templates/nomad.hcl.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ansible/roles/nomad') diff --git a/ansible/roles/nomad/templates/nomad.hcl.j2 b/ansible/roles/nomad/templates/nomad.hcl.j2 index b39a96b..c7a8b94 100644 --- a/ansible/roles/nomad/templates/nomad.hcl.j2 +++ b/ansible/roles/nomad/templates/nomad.hcl.j2 @@ -31,6 +31,6 @@ client { docker.privileged.enabled = "true" docker.volumes.enabled = "true" } - network_interface = "wgdeuxfleurs" + #network_interface = "wgdeuxfleurs" } -- cgit v1.2.3