Browse Source
Fixup vault etcd check (#2938)
* Fixup vault etcd
* Update main.yml
pull/2952/head
Matthew Mosesohn
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
roles/vault/tasks/shared/check_etcd.yml
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
- name: check_etcd | Check if etcd is up and reachable |
|
|
|
uri: |
|
|
|
url: "{{ vault_etcd_url }}/health" |
|
|
|
url: "{{ vault_etcd_url.split(',') | first }}/health" |
|
|
|
validate_certs: no |
|
|
|
client_cert: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem" |
|
|
|
client_key: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}-key.pem" |
|
|
@ -26,5 +26,5 @@ |
|
|
|
fail: |
|
|
|
msg: > |
|
|
|
Unable to start Vault cluster! Etcd is not available at |
|
|
|
{{ vault_etcd_url }} however it is needed by Vault as a backend. |
|
|
|
{{ vault_etcd_url.split(',') | first }} however it is needed by Vault as a backend. |
|
|
|
when: vault_etcd_needed|d() and not vault_etcd_available |