From 9083b8bf648f73da4eda20d6b80cec8ca88f8744 Mon Sep 17 00:00:00 2001 From: Leo Mylonas Date: Tue, 10 Jun 2025 11:51:10 +1000 Subject: [PATCH] mgr: handle possibly undefined template variable in haproxy.cfg.j2 Signed-off-by: Leo Mylonas (cherry picked from commit c0772d0c0ccc569244fde0d17fcf7acb4333b08e) --- .../mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 b/src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 index 27c0a6d5c71..f2c9acd028d 100644 --- a/src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 +++ b/src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 @@ -67,7 +67,7 @@ frontend frontend backend backend {% if mode == 'http' %} option forwardfor -{% if backend_spec.ssl %} +{% if backend_spec.ssl is defined and backend_spec.ssl %} default-server ssl default-server verify none {% endif %} -- 2.39.5