diff options
Diffstat (limited to 'fdio.infra.ansible/roles')
-rw-r--r-- | fdio.infra.ansible/roles/nomad/tasks/main.yaml | 6 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/nomad/templates/server.hcl.j2 | 1 |
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 %} |