Browse Source

Added ports.

Kenny Woodson 8 years ago
parent
commit
9454767696

+ 4 - 0
roles/openshift_hosted/defaults/main.yml

@@ -20,6 +20,10 @@ openshift_hosted_routers:
   selector: "{{ openshift_hosted_router_selector }}"
   images: "{{ openshift_hosted_router_image }}"
   edits: "{{ openshift_hosted_router_edits }}"
+  stats_port: 1936
+  ports:
+  - 80:80
+  - 443:443
   certificates: "{{ openshift_hosted_router_certificate | default({}) }}"
 
 

+ 2 - 0
roles/openshift_hosted/tasks/router/router.yml

@@ -36,6 +36,8 @@
     key_file: "{{ ('/etc/origin/master/' ~ (item.certificates.keyfile | basename)) if 'keyfile' in item.certificates else omit }}"
     cacert_file: "{{ ('/etc/origin/master/' ~ (item.certificates.cafile | basename)) if 'cafile' in item.certificates else omit }}"
     edits: "{{ openshift_hosted_router_edits | union(item.edits)  }}"
+    ports: "{{ item.ports }}"
+    stats_port: "{{ item.stats_port }}"
   with_items: "{{ openshift_hosted_routers }}"
   register: routerout