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
9cc73bdf
Commit
9cc73bdf
authored
8 years ago
by
Matthew Mosesohn
Browse files
Options
Downloads
Patches
Plain Diff
Fix etcd member list when upgrading ETCD from an old version
parent
8e809aed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/etcd/tasks/pre_upgrade.yml
+9
-0
9 additions, 0 deletions
roles/etcd/tasks/pre_upgrade.yml
with
9 additions
and
0 deletions
roles/etcd/tasks/pre_upgrade.yml
+
9
−
0
View file @
9cc73bdf
...
...
@@ -34,3 +34,12 @@
command
:
"
docker
rm
-f
{{item}}"
with_items
:
"
{{etcd_proxy_container.stdout_lines}}"
-
name
:
"
Pre-upgrade
|
check
if
member
list
is
non-SSL"
command
:
etcdctl member list
register
:
etcd_member_list
ignore_errors
:
true
-
name
:
"
Pre-upgrade
|
change
peer
names
to
SSL"
shell
:
>-
etcdctl member list | awk -F"[: =]" '{print "etcdctl member update "$1" https:"$7":"$8}' | bash
when
:
'
etcd_member_list
is
defined
and
"http://"
in
etcd_member_list.stdout'
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