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
b11662a8
Commit
b11662a8
authored
8 years ago
by
Smaine Kahlouch
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #558 from chadswen/etcdctl-path
Use absolute path for etcdctl
parents
8165da3f
e6902d8e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/etcd/tasks/configure.yml
+2
-2
2 additions, 2 deletions
roles/etcd/tasks/configure.yml
roles/etcd/tasks/set_cluster_health.yml
+1
-1
1 addition, 1 deletion
roles/etcd/tasks/set_cluster_health.yml
with
3 additions
and
3 deletions
roles/etcd/tasks/configure.yml
+
2
−
2
View file @
b11662a8
---
-
name
:
Configure | Check if member is in cluster
shell
:
"
etcdctl
--no-sync
--peers={{
etcd_access_addresses
}}
member
list
|
grep
-q
{{
etcd_access_address
}}"
shell
:
"
{{
bin_dir
}}/
etcdctl
--no-sync
--peers={{
etcd_access_addresses
}}
member
list
|
grep
-q
{{
etcd_access_address
}}"
register
:
etcd_member_in_cluster
ignore_errors
:
true
changed_when
:
false
...
...
@@ -8,7 +8,7 @@
-
name
:
Configure | Add member to the cluster if it is not there
when
:
is_etcd_master and etcd_member_in_cluster.rc != 0 and etcd_cluster_is_healthy.rc ==
0
shell
:
"
etcdctl
--peers={{
etcd_access_addresses
}}
member
add
{{
etcd_member_name
}}
{{
etcd_peer_url
}}"
shell
:
"
{{
bin_dir
}}/
etcdctl
--peers={{
etcd_access_addresses
}}
member
add
{{
etcd_member_name
}}
{{
etcd_peer_url
}}"
-
name
:
Configure | Copy etcd.service systemd file
template
:
...
...
This diff is collapsed.
Click to expand it.
roles/etcd/tasks/set_cluster_health.yml
+
1
−
1
View file @
b11662a8
---
-
name
:
Configure | Check if cluster is healthy
shell
:
"
etcdctl
--peers={{
etcd_access_addresses
}}
cluster-health
|
grep
-q
'cluster
is
healthy'"
shell
:
"
{{
bin_dir
}}/
etcdctl
--peers={{
etcd_access_addresses
}}
cluster-health
|
grep
-q
'cluster
is
healthy'"
register
:
etcd_cluster_is_healthy
ignore_errors
:
true
changed_when
:
false
...
...
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