summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-09-01 14:29:10 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-09-28 11:57:54 -0300
commit2a830f458e6512c3b6305934a650ba23d234a8ac (patch)
tree79f2c6e6ab1ec284851f925df488095dffd3375f /playbooks/common/openshift-cluster
parent43f52e292afac7bde5e588377e56d9c49574806c (diff)
downloadopenshift-2a830f458e6512c3b6305934a650ba23d234a8ac.tar.gz
openshift-2a830f458e6512c3b6305934a650ba23d234a8ac.tar.bz2
openshift-2a830f458e6512c3b6305934a650ba23d234a8ac.tar.xz
openshift-2a830f458e6512c3b6305934a650ba23d234a8ac.zip
Support openshift_upgrade_dry_run=true for pre-upgrade checks only.
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/pre.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/pre.yml b/playbooks/common/openshift-cluster/upgrades/pre.yml
index 42a24eaf8..13f6471b5 100644
--- a/playbooks/common/openshift-cluster/upgrades/pre.yml
+++ b/playbooks/common/openshift-cluster/upgrades/pre.yml
@@ -309,3 +309,10 @@
- fail:
msg: "Upgrade cannot continue. The following hosts did not complete etcd backup: {{ etcd_backup_failed | join(',') }}"
when: etcd_backup_failed | length > 0
+
+- name: Exit upgrade if dry-run specified
+ hosts: oo_first_master
+ tasks:
+ - fail:
+ msg: "Pre-upgrade checks completed, exiting due to openshift_upgrade_dry_run variable."
+ when: openshift_upgrade_dry_run is defined and openshift_upgrade_dry_run | bool