From 24118ab426f08e5bbfd9e53faeab09ac09f44313 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 1 Jul 2020 15:36:22 +0200 Subject: Make things work on cluster devx.adnab.me --- ansible/roles/nomad/templates/nomad.hcl.j2 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'ansible/roles/nomad/templates') diff --git a/ansible/roles/nomad/templates/nomad.hcl.j2 b/ansible/roles/nomad/templates/nomad.hcl.j2 index c7a8b94..55aa481 100644 --- a/ansible/roles/nomad/templates/nomad.hcl.j2 +++ b/ansible/roles/nomad/templates/nomad.hcl.j2 @@ -31,6 +31,16 @@ client { docker.privileged.enabled = "true" docker.volumes.enabled = "true" } - #network_interface = "wgdeuxfleurs" + + network_interface = "wgdeuxfleurs" + + host_network "default" { + #cidr = "{{ vpn_ip }}/24" + interface = "wgdeuxfleurs" + } + host_network "public" { + #cidr = "{{ public_ip }}/32" + interface = "{{ interface }}" + } } -- cgit v1.2.3