summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-05-19 11:53:16 +0200
committerGitHub <noreply@github.com>2017-05-19 11:53:16 +0200
commit80a71ef857cf6268d5f27c4c68bcd59f2c110af5 (patch)
tree191f6f392a9626d697ff419b06430d79ceae8dca /roles
parent3ddeebe66c59725077cdb712f93b30c6f139023f (diff)
parenta3b7fe62d02821cbca74ea466f37e8836764f30e (diff)
downloadopenshift-80a71ef857cf6268d5f27c4c68bcd59f2c110af5.tar.gz
openshift-80a71ef857cf6268d5f27c4c68bcd59f2c110af5.tar.bz2
openshift-80a71ef857cf6268d5f27c4c68bcd59f2c110af5.tar.xz
openshift-80a71ef857cf6268d5f27c4c68bcd59f2c110af5.zip
Merge pull request #4128 from VincentS/Container_Registry_Firewalld
Added Container Registry Port 5000 to Firewalld
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_hosted/defaults/main.yml5
-rw-r--r--roles/openshift_hosted/meta/main.yml5
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/openshift_hosted/defaults/main.yml b/roles/openshift_hosted/defaults/main.yml
index e7e62e5e4..089054e2f 100644
--- a/roles/openshift_hosted/defaults/main.yml
+++ b/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
diff --git a/roles/openshift_hosted/meta/main.yml b/roles/openshift_hosted/meta/main.yml
index 9626c23c1..9e3f37130 100644
--- a/roles/openshift_hosted/meta/main.yml
+++ b/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