upgrade_main.yml 978 B

1234567891011121314151617181920212223242526272829
  1. ---
  2. # For 1.4/3.4 we want to upgrade everyone to etcd-3.0. etcd docs say to
  3. # upgrade from 2.0.x to 2.1.x to 2.2.x to 2.3.x to 3.0.x. While this is a tedius
  4. # task for RHEL and CENTOS it's simply not possible in Fedora unless you've
  5. # mirrored packages on your own because only the GA and latest versions are
  6. # available in the repos. So for Fedora we'll simply skip this, sorry.
  7. - name: Backup etcd before upgrading anything
  8. import_playbook: upgrade_backup.yml
  9. vars:
  10. etcd_backup_tag: "pre-upgrade-"
  11. when: openshift_etcd_backup | default(true) | bool
  12. - name: Drop etcdctl profiles
  13. hosts: oo_etcd_hosts_to_upgrade
  14. tasks:
  15. - import_role:
  16. name: etcd
  17. tasks_from: drop_etcdctl.yml
  18. - name: Perform etcd upgrade
  19. import_playbook: upgrade_step.yml
  20. when: openshift_etcd_upgrade | default(true) | bool
  21. - name: Backup etcd
  22. import_playbook: upgrade_backup.yml
  23. vars:
  24. etcd_backup_tag: "post-3.0-"
  25. when: openshift_etcd_backup | default(true) | bool