22# GLOBAL #
33##########################
44global
5- {% if haproxy_global_chroot is defined and haproxy_global_chroot | length %}
5+ {% if haproxy_global_chroot is defined and haproxy_global_chroot | length %}
66 chroot {{ haproxy_global_chroot | default('/var/lib/haproxy') }}
77{% endif %}
88{% if haproxy_global_daemon %}
@@ -26,50 +26,50 @@ global
2626{% endif %}
2727 maxconn {{ haproxy_global_maxconn | default('4000') }}
2828 pidfile {{ haproxy_global_pidfile | default('/var/run/haproxy.pid') }}
29- {% if haproxy_global_ca_base is defined and haproxy_global_ca_base | length %}
29+ {% if haproxy_global_ca_base is defined and haproxy_global_ca_base | length %}
3030 ca-base {{ haproxy_global_ca_base }}
3131{% endif %}
32- {% if haproxy_global_crt_base is defined and haproxy_global_crt_base | length %}
32+ {% if haproxy_global_crt_base is defined and haproxy_global_crt_base | length %}
3333 crt-base {{ haproxy_global_crt_base }}
3434{% endif %}
35- {% if haproxy_global_ssl_bind_options is defined and haproxy_global_ssl_bind_options | length %}
35+ {% if haproxy_global_ssl_bind_options is defined and haproxy_global_ssl_bind_options | length %}
3636 ssl-default-bind-options {{ haproxy_global_ssl_bind_options }}
3737{% endif %}
38- {% if haproxy_global_ssl_bind_ciphers is defined and haproxy_global_ssl_bind_ciphers | length %}
38+ {% if haproxy_global_ssl_bind_ciphers is defined and haproxy_global_ssl_bind_ciphers | length %}
3939 ssl-default-bind-ciphers {{ haproxy_global_ssl_bind_ciphers }}
4040{% endif %}
41- {% if haproxy_global_ssl_bind_ciphersuites is defined and haproxy_global_ssl_bind_ciphersuites | length %}
41+ {% if haproxy_global_ssl_bind_ciphersuites is defined and haproxy_global_ssl_bind_ciphersuites | length %}
4242 ssl-default-bind-ciphersuites {{ haproxy_global_ssl_bind_ciphersuites }}
4343{% endif %}
44- {% if haproxy_global_ssl_server_options is defined and haproxy_global_ssl_server_options | length %}
44+ {% if haproxy_global_ssl_server_options is defined and haproxy_global_ssl_server_options | length %}
4545 ssl-default-server-options {{ haproxy_global_ssl_server_options }}
4646{% endif %}
47- {% if haproxy_global_ssl_server_ciphers is defined and haproxy_global_ssl_server_ciphers | length %}
47+ {% if haproxy_global_ssl_server_ciphers is defined and haproxy_global_ssl_server_ciphers | length %}
4848 ssl-default-server-ciphers {{ haproxy_global_ssl_server_ciphers }}
4949{% endif %}
50- {% if haproxy_global_ssl_server_ciphersuites is defined and haproxy_global_ssl_server_ciphersuites | length %}
50+ {% if haproxy_global_ssl_server_ciphersuites is defined and haproxy_global_ssl_server_ciphersuites | length %}
5151 ssl-default-server-ciphersuites {{ haproxy_global_ssl_server_ciphersuites }}
5252{% endif %}
53- {% if haproxy_global_ssl_server_verify is defined and haproxy_global_ssl_server_verify | length %}
53+ {% if haproxy_global_ssl_server_verify is defined and haproxy_global_ssl_server_verify | length %}
5454 ssl-server-verify {{ haproxy_global_ssl_server_verify }}
5555{% endif %}
56- {% if haproxy_global_stats is defined and haproxy_global_stats | length %}
56+ {% if haproxy_global_stats is defined and haproxy_global_stats | length %}
5757 {% for stat in haproxy_global_stats %}
5858 stats {{ stat }}
5959 {% endfor %}
6060{% endif %}
61- {% if haproxy_global_description is defined and haproxy_global_description | length %}
61+ {% if haproxy_global_description is defined and haproxy_global_description | length %}
6262 description {{ haproxy_global_description }}
6363{% endif %}
6464{% if haproxy_global_ulimit_n is defined and haproxy_global_ulimit_n > 0 %}
6565 ulimit-n {{ haproxy_global_ulimit_n }}
6666{% endif %}
67- {% if haproxy_global_logs is defined and haproxy_global_logs | length %}
67+ {% if haproxy_global_logs is defined and haproxy_global_logs | length %}
6868 {% for log in haproxy_global_logs %}
6969 log {{ log }}
7070 {% endfor %}
7171{% endif %}
72- {% if haproxy_global_tunes is defined and haproxy_global_tunes | length %}
72+ {% if haproxy_global_tunes is defined and haproxy_global_tunes | length %}
7373 {% for tune in haproxy_global_tunes %}
7474 {% for key , value in tune .items () %}
7575 {{ key }} {{ value }}
7878{% endif %}
7979{% if haproxy_global_server_state_base is defined %}
8080 server-state-base {{ haproxy_global_server_state_base }}
81- {% endif %}
81+ {% endif %}
82+ {% if haproxy_global_toggles is defined and haproxy_global_toggles | length %}
83+ {% for toggle in haproxy_global_toggles %}
84+ {{ toggle }}
85+ {% endfor %}
86+ {% endif %}
0 commit comments