summaryrefslogtreecommitdiffstats
path: root/roles/openshift_version/tasks
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-06-17 09:10:39 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-06-17 09:10:39 -0300
commite60b8976ef638c3368dd229906078f1077f00a99 (patch)
treee2f587030959565d6ce2cd231910be269b2869e0 /roles/openshift_version/tasks
parent63ea5cce369710363dd09b2b64c40871c6ce55f9 (diff)
downloadopenshift-e60b8976ef638c3368dd229906078f1077f00a99.tar.gz
openshift-e60b8976ef638c3368dd229906078f1077f00a99.tar.bz2
openshift-e60b8976ef638c3368dd229906078f1077f00a99.tar.xz
openshift-e60b8976ef638c3368dd229906078f1077f00a99.zip
Block attempts to install origin without specifying any release info.
Diffstat (limited to 'roles/openshift_version/tasks')
-rw-r--r--roles/openshift_version/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml
index e3bdad691..9ff13d35c 100644
--- a/roles/openshift_version/tasks/main.yml
+++ b/roles/openshift_version/tasks/main.yml
@@ -1,6 +1,13 @@
---
# Determine the openshift_version to configure if none has been specified or set previously.
+# Block attempts to install origin without specifying some kind of version information.
+# This is because the latest tags for origin are usually alpha builds, which should not
+# be used by default. Users must indicate what they want.
+- fail:
+ msg: "Must specify openshift_release, openshift_image_tag, or openshift_pkg_version in inventory to install origin. (suggestion: add openshift_release=\"1.2\" to inventory)"
+ when: openshift.common.deployment_type == 'origin' and openshift_release is not defined and openshift_pkg_version is not defined and openshift_image_tag is not defined
+
- set_fact:
is_containerized: "{{ openshift.common.is_containerized | default(False) | bool }}"