vars.yml 748 B

123456789101112131415
  1. ---
  2. # set the etcd backup directory name here in case the tag or sufix consists of dynamic value that changes over time
  3. # e.g. openshift-backup-{{ lookup('pipe', 'date +%Y%m%d%H%M%S') }} value will change every second so if the date changes
  4. # right after setting l_etcd_incontainer_backup_dir and before l_etcd_backup_dir facts, the backup directory name is different
  5. - set_fact:
  6. l_backup_dir_name: "openshift-backup-{{ r_etcd_common_backup_tag }}{{ r_etcd_common_backup_sufix_name }}"
  7. - set_fact:
  8. l_etcd_incontainer_data_dir: "{{ etcd_data_dir }}"
  9. - set_fact:
  10. l_etcd_incontainer_backup_dir: "{{ l_etcd_incontainer_data_dir }}/{{ l_backup_dir_name }}"
  11. - set_fact:
  12. l_etcd_backup_dir: "{{ etcd_data_dir }}/{{ l_backup_dir_name }}"