aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nomad/templates
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-05-21 15:27:09 +0200
committerAlex Auvolat <alex@adnab.me>2020-07-15 16:03:33 +0200
commita4f9aa2d9830e9fdc3504a6d2842359ee4ab38f0 (patch)
tree3be24e19f8b7a88f36d49870b13f220a178b8f9f /ansible/roles/nomad/templates
parent1a16fc7f9e54760cc09f676f0176b71654e32117 (diff)
downloadinfrastructure-a4f9aa2d9830e9fdc3504a6d2842359ee4ab38f0.tar.gz
infrastructure-a4f9aa2d9830e9fdc3504a6d2842359ee4ab38f0.zip
Set up wireguard in dev cluster
Diffstat (limited to 'ansible/roles/nomad/templates')
-rw-r--r--ansible/roles/nomad/templates/nomad.hcl.j28
1 files changed, 4 insertions, 4 deletions
diff --git a/ansible/roles/nomad/templates/nomad.hcl.j2 b/ansible/roles/nomad/templates/nomad.hcl.j2
index b0be6a8..8d62d9b 100644
--- a/ansible/roles/nomad/templates/nomad.hcl.j2
+++ b/ansible/roles/nomad/templates/nomad.hcl.j2
@@ -5,9 +5,9 @@ addresses {
}
advertise {
- http = "{{ public_ip }}"
- rpc = "{{ public_ip }}"
- serf = "{{ public_ip }}"
+ http = "{{ vpn_ip }}"
+ rpc = "{{ vpn_ip }}"
+ serf = "{{ vpn_ip }}"
}
data_dir = "/var/lib/nomad"
@@ -25,10 +25,10 @@ client {
enabled = true
#cpu_total_compute = 4000
servers = ["127.0.0.1:4648"]
- network_interface = "{{ interface }}"
options {
docker.privileged.enabled = "true"
docker.volumes.enabled = "true"
}
+ network_interface = "wgdeuxfleurs"
}