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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
e51c5dc0
Unverified
Commit
e51c5dc0
authored
6 years ago
by
Antoine Legrand
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #3123 from mathieuherbert/until-restart-etcd
add until option for etcd backup commands
parents
d297b82e
59d89a37
No related branches found
No related tags found
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/etcd/handlers/backup.yml
+4
-0
4 additions, 0 deletions
roles/etcd/handlers/backup.yml
with
4 additions
and
0 deletions
roles/etcd/handlers/backup.yml
+
4
−
0
View file @
e51c5dc0
...
...
@@ -39,6 +39,8 @@
environment
:
ETCDCTL_API
:
2
retries
:
3
register
:
backup_v2_command
until
:
backup_v2_command.rc ==
0
delay
:
"
{{
retry_stagger
|
random
+
3
}}"
-
name
:
Backup etcd v3 data
...
...
@@ -51,4 +53,6 @@
ETCDCTL_CERT
:
"
{{
etcd_cert_dir
}}/admin-{{
inventory_hostname
}}.pem"
ETCDCTL_KEY
:
"
{{
etcd_cert_dir
}}/admin-{{
inventory_hostname
}}-key.pem"
retries
:
3
register
:
etcd_backup_v3_command
until
:
etcd_backup_v3_command.rc ==
0
delay
:
"
{{
retry_stagger
|
random
+
3
}}"
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