diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-02-10 11:26:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-10 11:26:26 -0500 |
commit | 5ee790032dae79a6dd588f53b24932248e00f9ec (patch) | |
tree | bbfc56032e9aea8808f6b7afd3eaaa12f7d1a943 /roles/openshift_logging/templates | |
parent | 094fd21ceab111900c518dfad874b434c81e62ee (diff) | |
parent | f1e622ae0acb52fbd7ecd1b07b26b1b6884deb65 (diff) | |
download | openshift-5ee790032dae79a6dd588f53b24932248e00f9ec.tar.gz openshift-5ee790032dae79a6dd588f53b24932248e00f9ec.tar.bz2 openshift-5ee790032dae79a6dd588f53b24932248e00f9ec.tar.xz openshift-5ee790032dae79a6dd588f53b24932248e00f9ec.zip |
Merge pull request #3318 from jcantrill/bz_1420425_external_log_certs
bug 1420425. Allow setting of public facing certs for kibana in opens…
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 }} |