Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
0b939a49
Unverified
Commit
0b939a49
authored
6 years ago
by
Matthew Mosesohn
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve vault etcd initialization check (#2959)
parent
4d7426ec
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/vault/tasks/cluster/init.yml
+0
-1
0 additions, 1 deletion
roles/vault/tasks/cluster/init.yml
roles/vault/tasks/shared/check_vault.yml
+4
-2
4 additions, 2 deletions
roles/vault/tasks/shared/check_vault.yml
with
4 additions
and
3 deletions
roles/vault/tasks/cluster/init.yml
+
0
−
1
View file @
0b939a49
---
-
name
:
cluster/init | wait for vault
command
:
/bin/true
notify
:
wait for vault up
...
...
This diff is collapsed.
Click to expand it.
roles/vault/tasks/shared/check_vault.yml
+
4
−
2
View file @
0b939a49
...
...
@@ -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
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment