aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/nomad
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-08-03 08:23:07 +0000
committerPeter Mikus <pmikus@cisco.com>2022-08-03 08:23:07 +0000
commit85c1981890622d4d6abb6836ca2783fc99eb4edc (patch)
tree84104269657b32668528c105395587bfc0640ae8 /fdio.infra.ansible/roles/nomad
parent82b34c726b4eb93fbb8ca48b491dd7da65cb813b (diff)
feat(ansible): Migrate Ubuntu Jammy IV.
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ia48ee3f9bbcdfd7b85968362b1fb7f816dcd97be
Diffstat (limited to 'fdio.infra.ansible/roles/nomad')
-rw-r--r--fdio.infra.ansible/roles/nomad/tasks/main.yaml6
-rw-r--r--fdio.infra.ansible/roles/nomad/templates/server.hcl.j21
2 files changed, 4 insertions, 3 deletions
diff --git a/fdio.infra.ansible/roles/nomad/tasks/main.yaml b/fdio.infra.ansible/roles/nomad/tasks/main.yaml
index 480c4da0be..0204c0591c 100644
--- a/fdio.infra.ansible/roles/nomad/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/nomad/tasks/main.yaml
@@ -186,10 +186,10 @@
line: "{{ item }}"
create: true
loop:
- - "export NOMAD_ADDR=https://nomad.service.consul:4646"
+ - "export NOMAD_ADDR=http://nomad.service.consul:4646"
- "export NOMAD_CACERT={{ nomad_ca_file }}"
- - "export NOMAD_CLIENT_CERT={{ nomad_cli_cert_file }}"
- - "export NOMAD_CLIENT_KEY={{ nomad_cli_key_file }}"
+# - "export NOMAD_CLIENT_CERT={{ nomad_cli_cert_file }}"
+# - "export NOMAD_CLIENT_KEY={{ nomad_cli_key_file }}"
tags:
- nomad-conf
diff --git a/fdio.infra.ansible/roles/nomad/templates/server.hcl.j2 b/fdio.infra.ansible/roles/nomad/templates/server.hcl.j2
index f0ab223319..570d92e0c1 100644
--- a/fdio.infra.ansible/roles/nomad/templates/server.hcl.j2
+++ b/fdio.infra.ansible/roles/nomad/templates/server.hcl.j2
@@ -4,6 +4,7 @@ server {
{% if nomad_node_server | bool -%}
bootstrap_expect = {{ nomad_bootstrap_expect }}
{%- endif %}
+
{% if nomad_node_server | bool -%}
raft_protocol = 3
{%- endif %}