summaryrefslogtreecommitdiffstats
path: root/roles/openshift_manageiq/tasks
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-01-06 10:18:44 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2016-01-06 11:35:46 -0500
commit220982cf741faebccfb066e822626c7a951735c3 (patch)
tree16d4a1060df3c35883e1284d9d0994f952a39702 /roles/openshift_manageiq/tasks
parent4834968bd9b3bc621ecfc7584c0bc776471475f6 (diff)
downloadopenshift-220982cf741faebccfb066e822626c7a951735c3.tar.gz
openshift-220982cf741faebccfb066e822626c7a951735c3.tar.bz2
openshift-220982cf741faebccfb066e822626c7a951735c3.tar.xz
openshift-220982cf741faebccfb066e822626c7a951735c3.zip
We can't enable manageiq for installations less than OSE 3.1 or Origin 1.1
This is because 'oadmn policy add-scc-to-user' didn't exist in 3.0
Diffstat (limited to 'roles/openshift_manageiq/tasks')
-rw-r--r--roles/openshift_manageiq/tasks/main.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_manageiq/tasks/main.yaml b/roles/openshift_manageiq/tasks/main.yaml
index 2d3187e21..0357fc85a 100644
--- a/roles/openshift_manageiq/tasks/main.yaml
+++ b/roles/openshift_manageiq/tasks/main.yaml
@@ -1,4 +1,8 @@
---
+- fail:
+ msg: "The openshift_manageiq role requires OpenShift Enterprise 3.1 or Origin 1.1."
+ when: not openshift.common.version_greater_than_3_1_or_1_1 | bool
+
- name: Copy Configuration to temporary conf
command: >
cp {{ openshift.common.config_base }}/master/admin.kubeconfig {{manage_iq_tmp_conf}}