From 3c5ae163f9e3c23f460dce59dd20b5ccb1cc6c43 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Dec 04 2022 04:29:36 +0000 Subject: proxy: simplify reverseproxy template Signed-off-by: Kevin Fenzi --- diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.conf index 466a51e..fd8d361 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.conf @@ -21,12 +21,12 @@ ProxyPreserveHost On # This is something that wants a apache balancer SSLProxyEngine On -{% if targettype is defined and targettype == "openshift" %} +{% if ocp4 %} SSLProxyVerify require SSLProxyCheckPeerName Off -{% if ocp4 and env == "production" %} +{% if env == "production" %} SSLProxyCACertificateFile "/etc/haproxy/ocp-prod.pem" -{% elif ocp4 and env == "staging" %} +{% elif env == "staging" %} SSLProxyCACertificateFile "/etc/haproxy/ocp-stg.pem" {% endif %}