From cb0f3c4d018308ef736bae74c328b9dde21bd010 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Thu, 11 May 2017 13:51:43 +0000 Subject: [PATCH] ensure that the openshift_app_subdomain var is defined in the a-a-o-a inventory template Signed-off-by: Adam Miller --- .../templates/cluster-inventory.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 b/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 index e4f982427c..1c25e7f769 100644 --- a/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 +++ b/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 @@ -235,9 +235,11 @@ openshift_master_cluster_public_hostname={{openshift_cluster_url}} #osm_api_server_args={'max-requests-inflight': ['400']} # default subdomain to use for exposed routes +{% if openshift_app_subdomain is defined %} {% if openshift_app_subdomain %} openshift_master_default_subdomain={{openshift_app_subdomain}} {% endif %} +{% endif %} # additional cors origins #osm_custom_cors_origins=['foo.example.com', 'bar.example.com']