summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-10-28 12:12:39 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2015-10-28 15:11:10 -0300
commit7197aba51d24ab2cf6cde77efa853903d7ddd5ba (patch)
treeaa17b2d3cf041791b1b9633cad5ab3517d8de8d6 /playbooks/adhoc
parent93b2a9bd2f4a3b93be3cb51ecf034000a652496e (diff)
downloadopenshift-7197aba51d24ab2cf6cde77efa853903d7ddd5ba.tar.gz
openshift-7197aba51d24ab2cf6cde77efa853903d7ddd5ba.tar.bz2
openshift-7197aba51d24ab2cf6cde77efa853903d7ddd5ba.tar.xz
openshift-7197aba51d24ab2cf6cde77efa853903d7ddd5ba.zip
Block upgrade if targetting enterprise deployment type.
enterprise is being phased out in favor of openshift-enterprise, you need to specify where you wish to go.
Diffstat (limited to 'playbooks/adhoc')
-rw-r--r--playbooks/adhoc/upgrades/upgrade.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/playbooks/adhoc/upgrades/upgrade.yml b/playbooks/adhoc/upgrades/upgrade.yml
index 56a1df860..e8d6a335d 100644
--- a/playbooks/adhoc/upgrades/upgrade.yml
+++ b/playbooks/adhoc/upgrades/upgrade.yml
@@ -1,4 +1,12 @@
---
+- name: Verify deployment type
+ hosts: masters
+ tasks:
+ # Checking the global deployment type rather than host facts, this is about
+ # what the user is requesting.
+ - fail: msg="Deployment type enterprise not supported for upgrade"
+ when: deployment_type == "enterprise"
+
- name: Re-Run cluster configuration to apply latest configuration changes
include: ../../common/openshift-cluster/config.yml
vars: