Browse Source

Bug 1550148 - Fail install if console port does not match API server port

https://bugzilla.redhat.com/show_bug.cgi?id=1550148
Samuel Padgett 7 years ago
parent
commit
bc35693db8
1 changed files with 11 additions and 0 deletions
  1. 11 0
      roles/openshift_sanitize_inventory/tasks/main.yml

+ 11 - 0
roles/openshift_sanitize_inventory/tasks/main.yml

@@ -76,3 +76,14 @@
     - ( openshift_cloudprovider_vsphere_username is undefined or openshift_cloudprovider_vsphere_password is undefined or
         openshift_cloudprovider_vsphere_host is undefined or openshift_cloudprovider_vsphere_datacenter is undefined or
         openshift_cloudprovider_vsphere_datastore is undefined )
+
+- name: Ensure that web console port matches API server port
+  fail:
+    msg: >
+      The OpenShift web console port must now match the API server port. If you
+      were previoiusly running the web console on a different port than the API
+      server, please open a support ticket.
+  when:
+    - openshift_master_console_port is defined
+    - openshift_master_console_port != (openshift_master_api_port | default(8443))
+    - openshift_version | version_compare('3.9', '>=')