Browse Source

Merge pull request #3123 from mathieuherbert/until-restart-etcd

add until option for etcd backup commands
pull/3128/head
Antoine Legrand 6 years ago
committed by GitHub
parent
commit
e51c5dc0a6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. 4
      roles/etcd/handlers/backup.yml

4
roles/etcd/handlers/backup.yml

@ -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 }}"
Loading…
Cancel
Save