aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nomad/templates
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-07-01 15:36:22 +0200
committerAlex Auvolat <alex@adnab.me>2020-07-15 16:06:08 +0200
commit24118ab426f08e5bbfd9e53faeab09ac09f44313 (patch)
treebcde57236c7dfb4d848843dbd4519c2146ba1f2f /ansible/roles/nomad/templates
parent65af077d5a046bfecd94ca0e203c61a2e214db2d (diff)
downloadinfrastructure-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.j212
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 }}"
+ }
}