Browse Source

Added Docker Registry Port 5000 to Firewalld

Vincent Schwarzer 8 years ago
parent
commit
a3b7fe62d0
2 changed files with 10 additions and 0 deletions
  1. 5 0
      roles/openshift_hosted/defaults/main.yml
  2. 5 0
      roles/openshift_hosted/meta/main.yml

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

@@ -30,3 +30,8 @@ openshift_hosted_routers:
 openshift_hosted_router_certificate: {}
 openshift_hosted_registry_cert_expire_days: 730
 openshift_hosted_router_create_certificate: False
+
+os_firewall_allow:
+- service: Docker Registry Port
+  port: 5000/tcp
+  when: openshift.common.use_calico | bool

+ 5 - 0
roles/openshift_hosted/meta/main.yml

@@ -15,3 +15,8 @@ dependencies:
 - role: openshift_cli
 - role: openshift_hosted_facts
 - role: lib_openshift
+- role: os_firewall
+  os_firewall_allow:
+  - service: Docker Registry Port
+    port: 5000/tcp
+  when: openshift.common.use_calico | bool