summaryrefslogtreecommitdiffstats
path: root/roles/openshift_version
diff options
context:
space:
mode:
authorSteve Milner <smilner@redhat.com>2017-03-13 15:34:59 -0400
committerSteve Milner <smilner@redhat.com>2017-04-03 09:27:57 -0400
commit20d205de5b62ea400dfe738ea3fd5ade3fac5ef0 (patch)
tree57642afff7d4589ee2e20670b2af6e47ddca0ca7 /roles/openshift_version
parente9c87e2c135f54862905d4677ebf97551bfa1a6e (diff)
downloadopenshift-20d205de5b62ea400dfe738ea3fd5ade3fac5ef0.tar.gz
openshift-20d205de5b62ea400dfe738ea3fd5ade3fac5ef0.tar.bz2
openshift-20d205de5b62ea400dfe738ea3fd5ade3fac5ef0.tar.xz
openshift-20d205de5b62ea400dfe738ea3fd5ade3fac5ef0.zip
Warn if openshift_image_tag is defined by hand for package installs
Diffstat (limited to 'roles/openshift_version')
-rw-r--r--roles/openshift_version/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml
index ef1783244..9780fd746 100644
--- a/roles/openshift_version/tasks/main.yml
+++ b/roles/openshift_version/tasks/main.yml
@@ -94,6 +94,18 @@
include: set_version_containerized.yml
when: is_containerized | bool
+# Warn if the user has provided an openshift_image_tag but is not doing a containerized install
+# NOTE: This will need to be modified/removed for future container + rpm installations work.
+- name: Warn if openshift_image_tag is defined when not doing a containerized install
+ debug:
+ msg: >
+ openshift_image_tag is used for containerized installs. If you are trying to
+ specify an image for a non-container install see oreg_url.
+ when:
+ - not is_containerized | bool
+ - openshift_image_tag is defined
+
+
# At this point we know openshift_version is set appropriately. Now we set
# openshift_image_tag and openshift_pkg_version, so all roles can always assume
# each of this variables *will* be set correctly and can use them per their