diff options
author | Maciej Szulik <maszulik@redhat.com> | 2017-02-15 13:18:04 +0100 |
---|---|---|
committer | Maciej Szulik <maszulik@redhat.com> | 2017-02-15 13:18:04 +0100 |
commit | 506b2df261c9224f3e6a8328edad5c6de5a12b66 (patch) | |
tree | b8f94989d92ba6e5a5ff64ebc002c2dd8d9a1031 /playbooks/common/openshift-cluster/upgrades | |
parent | ec7340eb707ca25716b02d06bfb3fc16796aeaca (diff) | |
download | openshift-506b2df261c9224f3e6a8328edad5c6de5a12b66.tar.gz openshift-506b2df261c9224f3e6a8328edad5c6de5a12b66.tar.bz2 openshift-506b2df261c9224f3e6a8328edad5c6de5a12b66.tar.xz openshift-506b2df261c9224f3e6a8328edad5c6de5a12b66.zip |
Add upgrade job step after the entire upgrade performs
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml b/playbooks/common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml new file mode 100644 index 000000000..3743f0f5d --- /dev/null +++ b/playbooks/common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml @@ -0,0 +1,19 @@ +--- +############################################################################### +# Post upgrade - Upgrade job storage +############################################################################### +- name: Upgrade job storage + hosts: oo_first_master + roles: + - { role: openshift_cli } + vars: + # Another spot where we assume docker is running and do not want to accidentally trigger an unsafe + # restart. + skip_docker_role: True + tasks: + - name: Upgrade job storage + command: > + {{ openshift.common.client_binary }} adm --config={{ openshift.common.config_base }}/master/admin.kubeconfig + migrate storage --include=jobs --confirm + run_once: true + |