diff options
author | Russell Teague <rteague@redhat.com> | 2017-12-05 16:30:06 -0500 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-12-05 16:30:06 -0500 |
commit | 112e1696cc7d2c8c5b11682b584b45a37e947099 (patch) | |
tree | 07d19cfd81c7d323ac10a1fd1568f562014431c9 /playbooks/openshift-etcd/private/upgrade_main.yml | |
parent | 968f614e984da91a4e883a9642af8e66d49d87a0 (diff) | |
download | openshift-112e1696cc7d2c8c5b11682b584b45a37e947099.tar.gz openshift-112e1696cc7d2c8c5b11682b584b45a37e947099.tar.bz2 openshift-112e1696cc7d2c8c5b11682b584b45a37e947099.tar.xz openshift-112e1696cc7d2c8c5b11682b584b45a37e947099.zip |
Playbook Consolidation - etcd Upgrade
Diffstat (limited to 'playbooks/openshift-etcd/private/upgrade_main.yml')
-rw-r--r-- | playbooks/openshift-etcd/private/upgrade_main.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/playbooks/openshift-etcd/private/upgrade_main.yml b/playbooks/openshift-etcd/private/upgrade_main.yml new file mode 100644 index 000000000..e373a4a4c --- /dev/null +++ b/playbooks/openshift-etcd/private/upgrade_main.yml @@ -0,0 +1,29 @@ +--- +# For 1.4/3.4 we want to upgrade everyone to etcd-3.0. etcd docs say to +# 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 +# task for RHEL and CENTOS it's simply not possible in Fedora unless you've +# mirrored packages on your own because only the GA and latest versions are +# available in the repos. So for Fedora we'll simply skip this, sorry. + +- name: Backup etcd before upgrading anything + import_playbook: upgrade_backup.yml + vars: + etcd_backup_tag: "pre-upgrade-" + when: openshift_etcd_backup | default(true) | bool + +- name: Drop etcdctl profiles + hosts: oo_etcd_hosts_to_upgrade + tasks: + - include_role: + name: etcd + tasks_from: drop_etcdctl.yml + +- name: Perform etcd upgrade + import_playbook: upgrade_step.yml + when: openshift_etcd_upgrade | default(true) | bool + +- name: Backup etcd + import_playbook: upgrade_backup.yml + vars: + etcd_backup_tag: "post-3.0-" + when: openshift_etcd_backup | default(true) | bool |