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
0b60201a
Commit
0b60201a
authored
7 years ago
by
Peter Lee
Committed by
Matthew Mosesohn
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix etcd health check bug (#1480)
parent
cfea99c4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/vault/tasks/shared/check_etcd.yml
+4
-1
4 additions, 1 deletion
roles/vault/tasks/shared/check_etcd.yml
with
4 additions
and
1 deletion
roles/vault/tasks/shared/check_etcd.yml
+
4
−
1
View file @
0b60201a
...
...
@@ -4,6 +4,7 @@
uri
:
url
:
"
{{
vault_etcd_url
}}/health"
validate_certs
:
no
return_content
:
yes
until
:
vault_etcd_health_check.status == 200 or vault_etcd_health_check.status ==
401
retries
:
10
delay
:
2
...
...
@@ -14,7 +15,9 @@
-
name
:
check_etcd | Set fact based off the etcd_health_check response
set_fact
:
vault_etcd_available
:
"
{{
vault_etcd_health_check.get('json',
{}).get('health')|bool
}}"
vault_etcd_available
:
"
{{
vault_etcd_health_check.content
}}"
-
set_fact
:
vault_etcd_available
:
"
{{
vault_etcd_available.health|d()|bool
}}"
-
name
:
check_etcd | Fail if etcd is not available and needed
fail
:
...
...
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