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
769566f3
Commit
769566f3
authored
8 years ago
by
Bogdan Dobrelya
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #633 from bodepd/etcd_fix
Ensure that etcd health checks always pass
parents
ddd23048
ff675d40
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/etcd/handlers/main.yml
+6
-6
6 additions, 6 deletions
roles/etcd/handlers/main.yml
with
6 additions
and
6 deletions
roles/etcd/handlers/main.yml
+
6
−
6
View file @
769566f3
...
...
@@ -10,6 +10,12 @@
command
:
systemctl daemon-reload
when
:
ansible_service_mgr == "systemd"
-
name
:
reload etcd
service
:
name
:
etcd
state
:
restarted
when
:
is_etcd_master
-
name
:
wait for etcd up
uri
:
url="https://{% if is_etcd_master %}{{ etcd_address }}{% else %}127.0.0.1{% endif %}:2379/health" validate_certs=no
register
:
result
...
...
@@ -17,12 +23,6 @@
retries
:
10
delay
:
5
-
name
:
reload etcd
service
:
name
:
etcd
state
:
restarted
when
:
is_etcd_master
-
name
:
set etcd_secret_changed
set_fact
:
etcd_secret_changed
:
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