Browse Source

Better error if no OpenShift RPMs are available.

Devan Goodwin 8 years ago
parent
commit
c908f5aac9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      roles/openshift_version/tasks/main.yml

+ 4 - 0
roles/openshift_version/tasks/main.yml

@@ -73,6 +73,10 @@
     msg: openshift_version role was unable to set openshift_pkg_version
   when: openshift_pkg_version is not defined
 
+- fail:
+    msg: "No OpenShift version available, please ensure your systems are fully registered and have access to appropriate yum repositories."
+  when: not is_containerized | bool and openshift_version == '0.0'
+
 # We can't map an openshift_release to full rpm version like we can with containers, make sure
 # the rpm version we looked up matches the release requested and error out if not.
 - fail: