diff options
| author | Jeff Cantrill <jcantril@redhat.com> | 2017-02-09 13:28:47 -0500 | 
|---|---|---|
| committer | Jeff Cantrill <jcantril@redhat.com> | 2017-02-10 11:18:17 -0500 | 
| commit | f1e622ae0acb52fbd7ecd1b07b26b1b6884deb65 (patch) | |
| tree | bbfc56032e9aea8808f6b7afd3eaaa12f7d1a943 /roles/openshift_logging/templates | |
| parent | 094fd21ceab111900c518dfad874b434c81e62ee (diff) | |
bug 1420425. Allow setting of public facing certs for kibana in openshift_logging role
Diffstat (limited to 'roles/openshift_logging/templates')
| -rw-r--r-- | roles/openshift_logging/templates/route_reencrypt.j2 | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_logging/templates/route_reencrypt.j2 b/roles/openshift_logging/templates/route_reencrypt.j2 index 8be30a2c4..341ffdd84 100644 --- a/roles/openshift_logging/templates/route_reencrypt.j2 +++ b/roles/openshift_logging/templates/route_reencrypt.j2 @@ -11,6 +11,14 @@ metadata:  spec:    host: {{ route_host }}    tls: +{% if tls_key is defined and tls_key | length > 0 %} +    key: | +{{ tls_key|indent(6, true) }} +{% if tls_cert is defined and tls_cert | length > 0 %} +    certificate: | +{{ tls_cert|indent(6, true) }} +{% endif %} +{% endif %}      caCertificate: |  {% for line in tls_ca_cert.split('\n') %}        {{ line }}  | 
