Skip to content
Snippets Groups Projects
Unverified Commit e51c5dc0 authored by Antoine Legrand's avatar Antoine Legrand Committed by GitHub
Browse files

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
No related merge requests found
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
environment: environment:
ETCDCTL_API: 2 ETCDCTL_API: 2
retries: 3 retries: 3
register: backup_v2_command
until: backup_v2_command.rc == 0
delay: "{{ retry_stagger | random + 3 }}" delay: "{{ retry_stagger | random + 3 }}"
- name: Backup etcd v3 data - name: Backup etcd v3 data
...@@ -51,4 +53,6 @@ ...@@ -51,4 +53,6 @@
ETCDCTL_CERT: "{{ etcd_cert_dir }}/admin-{{ inventory_hostname }}.pem" ETCDCTL_CERT: "{{ etcd_cert_dir }}/admin-{{ inventory_hostname }}.pem"
ETCDCTL_KEY: "{{ etcd_cert_dir }}/admin-{{ inventory_hostname }}-key.pem" ETCDCTL_KEY: "{{ etcd_cert_dir }}/admin-{{ inventory_hostname }}-key.pem"
retries: 3 retries: 3
register: etcd_backup_v3_command
until: etcd_backup_v3_command.rc == 0
delay: "{{ retry_stagger | random + 3 }}" delay: "{{ retry_stagger | random + 3 }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment