Skip to content

Commit

Permalink
Improve vault etcd initialization check (kubernetes-sigs#2959)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattymo authored Jul 5, 2018
1 parent 4d7426e commit 0b939a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion roles/vault/tasks/cluster/init.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: cluster/init | wait for vault
command: /bin/true
notify: wait for vault up
Expand Down
6 changes: 4 additions & 2 deletions roles/vault/tasks/shared/check_vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# Check if vault is reachable on the localhost
- name: check_vault | Attempt to pull local https Vault health
command: /bin/true
notify: wait for vault up nowait
notify:
- wait for vault up nowait
- set facts about local Vault health

- meta: flush_handlers

Expand Down Expand Up @@ -44,6 +46,6 @@
vault_cluster_is_initialized: >-
{{ vault_is_initialized or
hostvars[item]['vault_is_initialized'] or
'Key not found' not in vault_etcd_exists.stdout|default('Key not found') }}
('value' in vault_etcd_exists.stdout|default('')) }}
with_items: "{{ groups.vault }}"
run_once: true

0 comments on commit 0b939a4

Please sign in to comment.