aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nomad
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-05-21 23:41:39 +0200
committerAlex Auvolat <alex@adnab.me>2020-07-15 16:03:42 +0200
commit207d1fa278bc1cb9e8600779287abaffe2ef7746 (patch)
tree367eb0afcc7e878c105ad977b85fad738de09dd0 /ansible/roles/nomad
parentbee7e10256e0939c1852e4cc3fba1829e0c78c4f (diff)
downloadinfrastructure-207d1fa278bc1cb9e8600779287abaffe2ef7746.tar.gz
infrastructure-207d1fa278bc1cb9e8600779287abaffe2ef7746.zip
Allow external VPN nodes, make multi-DC deployment work
Diffstat (limited to 'ansible/roles/nomad')
-rw-r--r--ansible/roles/nomad/templates/nomad.hcl.j24
1 files changed, 3 insertions, 1 deletions
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 {