summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2015-11-03 11:26:33 -0500
committerAndrew Butcher <abutcher@redhat.com>2015-11-03 11:50:06 -0500
commit3a8b4f1315e28f35e16ace77560f040f08588722 (patch)
tree37e57b9a3bd6e4b5f66dda9bf2f8b8aef73f9bea /roles/openshift_master
parent8da7c1f5bc68110469bedceb0ddad4fdfc8b7e4d (diff)
downloadopenshift-3a8b4f1315e28f35e16ace77560f040f08588722.tar.gz
openshift-3a8b4f1315e28f35e16ace77560f040f08588722.tar.bz2
openshift-3a8b4f1315e28f35e16ace77560f040f08588722.tar.xz
openshift-3a8b4f1315e28f35e16ace77560f040f08588722.zip
Filter internal hostnames from the list of parsed names.
Diffstat (limited to 'roles/openshift_master')
-rw-r--r--roles/openshift_master/templates/master.yaml.v1.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_master/templates/master.yaml.v1.j2 b/roles/openshift_master/templates/master.yaml.v1.j2
index b429be596..9547a6945 100644
--- a/roles/openshift_master/templates/master.yaml.v1.j2
+++ b/roles/openshift_master/templates/master.yaml.v1.j2
@@ -16,7 +16,7 @@ assetConfig:
maxRequestsInFlight: 0
requestTimeoutSeconds: 0
corsAllowedOrigins:
-{% for origin in ['127.0.0.1', 'localhost', openshift.common.hostname, openshift.common.ip, openshift.common.public_hostname, openshift.common.public_ip] %}
+{% for origin in ['127.0.0.1', 'localhost', openshift.common.hostname, openshift.common.ip, openshift.common.public_hostname, openshift.common.public_ip] | unique %}
- {{ origin }}
{% endfor %}
{% for custom_origin in openshift.master.custom_cors_origins | default("") %}