diff options
author | Alex Auvolat <alex@adnab.me> | 2020-07-01 15:36:22 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-07-15 16:06:08 +0200 |
commit | 24118ab426f08e5bbfd9e53faeab09ac09f44313 (patch) | |
tree | bcde57236c7dfb4d848843dbd4519c2146ba1f2f /ansible/roles/nomad/templates | |
parent | 65af077d5a046bfecd94ca0e203c61a2e214db2d (diff) | |
download | infrastructure-24118ab426f08e5bbfd9e53faeab09ac09f44313.tar.gz infrastructure-24118ab426f08e5bbfd9e53faeab09ac09f44313.zip |
Make things work on cluster devx.adnab.me
Diffstat (limited to 'ansible/roles/nomad/templates')
-rw-r--r-- | ansible/roles/nomad/templates/nomad.hcl.j2 | 12 |
1 files changed, 11 insertions, 1 deletions
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 }}" + } } |