From 39fa28a226b3a44d5a3538320c985b6937955992 Mon Sep 17 00:00:00 2001 From: johansenha <35975241+johansenha@users.noreply.github.com> Date: Sun, 2 Apr 2023 03:44:28 +0200 Subject: [PATCH] Possibility to add custom includes in apache vhost config (zabbix_web) (#935) * add custom includes for apache configuration * remove length check * change if statement in template --------- Co-authored-by: JHauf --- roles/zabbix_web/templates/apache_vhost.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/zabbix_web/templates/apache_vhost.conf.j2 b/roles/zabbix_web/templates/apache_vhost.conf.j2 index 44982df6c..5ee97c830 100644 --- a/roles/zabbix_web/templates/apache_vhost.conf.j2 +++ b/roles/zabbix_web/templates/apache_vhost.conf.j2 @@ -79,6 +79,12 @@ SSLRandomSeed connect builtin ## Vhost docroot DocumentRoot "/usr/share/zabbix" +{% if zabbix_apache_custom_includes is iterable and (zabbix_apache_custom_includes | length>0) %} + {% for include in zabbix_apache_custom_includes %} + {{ include }} + {% endfor %} +{% endif %} + SSLEngine on {{ (zabbix_web_ssl_cipher_suite is defined and zabbix_web_ssl_cipher_suite is not none) | ternary('', '# ') }}SSLCipherSuite {{ zabbix_web_ssl_cipher_suite | default('') }} {{ (zabbix_web_ssl_cipher_suite is defined and zabbix_web_ssl_cipher_suite is not none) | ternary('', '# ') }}SSLHonorCipherOrder On