Преглед на файлове

Add ability to support custom api and console ports (#712)

* Add ability to support custom api and console ports

* Missed an ingress rule
Eric Sauer преди 7 години
родител
ревизия
074b3e5261
променени са 1 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. 12 4
      roles/openstack-stack/templates/heat_stack.yaml.j2

+ 12 - 4
roles/openstack-stack/templates/heat_stack.yaml.j2

@@ -193,8 +193,12 @@ resources:
           port_range_max: 4001
         - direction: ingress
           protocol: tcp
-          port_range_min: 8443
-          port_range_max: 8444
+          port_range_min: {{ openshift_master_api_port|default(8443) }}
+          port_range_max: {{ openshift_master_api_port|default(8443) }}
+        - direction: ingress
+          protocol: tcp
+          port_range_min: {{ openshift_master_console_port|default(8443) }}
+          port_range_max: {{ openshift_master_console_port|default(8443) }}
         - direction: ingress
           protocol: tcp
           port_range_min: 8053
@@ -284,8 +288,12 @@ resources:
           port_range_max: 4001
         - direction: ingress
           protocol: tcp
-          port_range_min: 8443
-          port_range_max: 8444
+          port_range_min: {{ openshift_master_api_port|default(8443) }}
+          port_range_max: {{ openshift_master_api_port|default(8443) }}
+        - direction: ingress
+          protocol: tcp
+          port_range_min: {{ openshift_master_console_port|default(8443) }}
+          port_range_max: {{ openshift_master_console_port|default(8443) }}
         - direction: ingress
           protocol: tcp
           port_range_min: 8053