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
2faf53b0
Unverified
Commit
2faf53b0
authored
4 years ago
by
Florian Ruynat
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Check node_ip is defined when removing etcd node (#6603)
parent
e0b17877
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/remove-node/remove-etcd-node/tasks/main.yml
+5
-0
5 additions, 0 deletions
roles/remove-node/remove-etcd-node/tasks/main.yml
with
5 additions
and
0 deletions
roles/remove-node/remove-etcd-node/tasks/main.yml
+
5
−
0
View file @
2faf53b0
...
...
@@ -17,6 +17,11 @@
when
:
-
inventory_hostname in groups['etcd']
-
name
:
Make sure node_ip is set
assert
:
that
:
node_ip is defined and node_ip | length >
0
msg
:
"
Etcd
node
ip
is
not
set
!"
-
name
:
Lookup etcd member id
shell
:
"
{{
bin_dir
}}/etcdctl
member
list
|
grep
{{
node_ip
}}
|
cut
-d,
-f1"
register
:
etcd_member_id
...
...
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