diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-06-17 09:10:39 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-06-17 09:10:39 -0300 |
commit | e60b8976ef638c3368dd229906078f1077f00a99 (patch) | |
tree | e2f587030959565d6ce2cd231910be269b2869e0 /roles | |
parent | 63ea5cce369710363dd09b2b64c40871c6ce55f9 (diff) | |
download | openshift-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')
-rw-r--r-- | roles/openshift_version/tasks/main.yml | 7 |
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 }}" |