From 207d1fa278bc1cb9e8600779287abaffe2ef7746 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 21 May 2020 23:41:39 +0200 Subject: Allow external VPN nodes, make multi-DC deployment work --- ansible/roles/nomad/templates/nomad.hcl.j2 | 4 +++- 1 file changed, 3 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 8d62d9b..b39a96b 100644 --- a/ansible/roles/nomad/templates/nomad.hcl.j2 +++ b/ansible/roles/nomad/templates/nomad.hcl.j2 @@ -1,3 +1,5 @@ +datacenter = "{{ datacenter }}" + addresses { http = "0.0.0.0" rpc = "0.0.0.0" @@ -14,7 +16,7 @@ data_dir = "/var/lib/nomad" server { enabled = true - bootstrap_expect = 3 + bootstrap_expect = {{ groups['cluster_nodes']|length }} } consul { -- cgit v1.2.3