Use v2 api when talking to etcd

Use the etcd v2 api when talking to vault because there is a bug
in the client which causes vault  to be inaccessible if the first
etcd unit goes down.

Change-Id: Iadbfcb9998d029cc6cf599008c124960993acb4e
Closes-Bug: 1782620
This commit is contained in:
Liam Young 2018-08-22 13:07:47 +00:00
parent f5ba548919
commit 1fb67475fe
1 changed files with 4 additions and 1 deletions

View File

@ -26,8 +26,11 @@ ha_storage "etcd" {
tls_ca_file = "{{ etcd_tls_ca_file }}"
tls_cert_file = "{{ etcd_tls_cert_file }}"
tls_key_file = "{{ etcd_tls_key_file }}"
etcd_api = "v3"
# Use v2 api due to https://github.com/hashicorp/vault/issues/4961
etcd_api = "v2"
}
{%- endif %}
listener "tcp" {
address = "0.0.0.0:8200"