Skip to content

Commit

Permalink
Possibility to add custom includes in apache vhost config (zabbix_web) (
Browse files Browse the repository at this point in the history
ansible-collections#935)

* add custom includes for apache configuration

* remove length check

* change if statement in template

---------

Co-authored-by: JHauf <johannes.hauf@datev.cloud>
  • Loading branch information
2 people authored and pyrodie18 committed Apr 8, 2023
1 parent 1079408 commit 39fa28a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/zabbix_web/templates/apache_vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39fa28a

Please sign in to comment.