summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErez Freiberger <efreiber@redhat.com>2017-07-25 19:45:33 +0300
committerErez Freiberger <efreiber@redhat.com>2017-07-25 19:55:40 +0300
commitbe594907d750477c7ef0dec9c235f0697de79070 (patch)
treec39c32245c58e9f233637fb074815cf125dc9668
parent3dcbba70c0e282c33c5dd197b7e0935b3be66b60 (diff)
downloadopenshift-be594907d750477c7ef0dec9c235f0697de79070.tar.gz
openshift-be594907d750477c7ef0dec9c235f0697de79070.tar.bz2
openshift-be594907d750477c7ef0dec9c235f0697de79070.tar.xz
openshift-be594907d750477c7ef0dec9c235f0697de79070.zip
add default value for router path in the cert
-rw-r--r--roles/openshift_hosted/tasks/router/router.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_hosted/tasks/router/router.yml b/roles/openshift_hosted/tasks/router/router.yml
index b6ead5123..dd485a64a 100644
--- a/roles/openshift_hosted/tasks/router/router.yml
+++ b/roles/openshift_hosted/tasks/router/router.yml
@@ -23,8 +23,8 @@
signer_key: "{{ openshift_master_config_dir }}/ca.key"
signer_serial: "{{ openshift_master_config_dir }}/ca.serial.txt"
hostnames:
- - "{{ openshift_master_default_subdomain }}"
- - "*.{{ openshift_master_default_subdomain }}"
+ - "{{ openshift_master_default_subdomain | default('router.default.svc.cluster.local') }}"
+ - "*.{{ openshift_master_default_subdomain | default('router.default.svc.cluster.local') }}"
cert: "{{ ('/etc/origin/master/' ~ (item.certificate.certfile | basename)) if 'certfile' in item.certificate else ((openshift_master_config_dir) ~ '/openshift-router.crt') }}"
key: "{{ ('/etc/origin/master/' ~ (item.certificate.keyfile | basename)) if 'keyfile' in item.certificate else ((openshift_master_config_dir) ~ '/openshift-router.key') }}"
with_items: "{{ openshift_hosted_routers }}"