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
783924e6
Commit
783924e6
authored
7 years ago
by
sgmitchell
Committed by
Matthew Mosesohn
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change backup handler to only run v2 data backup if snap directory exists (#1594)
parent
93304e5f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/etcd/handlers/backup.yml
+7
-0
7 additions, 0 deletions
roles/etcd/handlers/backup.yml
with
7 additions
and
0 deletions
roles/etcd/handlers/backup.yml
+
7
−
0
View file @
783924e6
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
-
Refresh Time Fact
-
Refresh Time Fact
-
Set Backup Directory
-
Set Backup Directory
-
Create Backup Directory
-
Create Backup Directory
-
Stat etcd v2 data directory
-
Backup etcd v2 data
-
Backup etcd v2 data
-
Backup etcd v3 data
-
Backup etcd v3 data
when
:
etcd_cluster_is_healthy.rc ==
0
when
:
etcd_cluster_is_healthy.rc ==
0
...
@@ -24,7 +25,13 @@
...
@@ -24,7 +25,13 @@
group
:
root
group
:
root
mode
:
0600
mode
:
0600
-
name
:
Stat etcd v2 data directory
stat
:
path
:
"
{{
etcd_data_dir
}}/member"
register
:
etcd_data_dir_member
-
name
:
Backup etcd v2 data
-
name
:
Backup etcd v2 data
when
:
etcd_data_dir_member.stat.exists
command
:
>-
command
:
>-
{{ bin_dir }}/etcdctl backup
{{ bin_dir }}/etcdctl backup
--data-dir {{ etcd_data_dir }}
--data-dir {{ etcd_data_dir }}
...
...
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