2
2
# GLOBAL #
3
3
##########################
4
4
global
5
- {% if haproxy_global_chroot is defined and haproxy_global_chroot | length %}
5
+ {% if haproxy_global_chroot is defined and haproxy_global_chroot | length %}
6
6
chroot {{ haproxy_global_chroot | default('/var/lib/haproxy') }}
7
7
{% endif %}
8
8
{% if haproxy_global_daemon %}
@@ -26,50 +26,50 @@ global
26
26
{% endif %}
27
27
maxconn {{ haproxy_global_maxconn | default('4000') }}
28
28
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 %}
30
30
ca-base {{ haproxy_global_ca_base }}
31
31
{% 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 %}
33
33
crt-base {{ haproxy_global_crt_base }}
34
34
{% 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 %}
36
36
ssl-default-bind-options {{ haproxy_global_ssl_bind_options }}
37
37
{% 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 %}
39
39
ssl-default-bind-ciphers {{ haproxy_global_ssl_bind_ciphers }}
40
40
{% 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 %}
42
42
ssl-default-bind-ciphersuites {{ haproxy_global_ssl_bind_ciphersuites }}
43
43
{% 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 %}
45
45
ssl-default-server-options {{ haproxy_global_ssl_server_options }}
46
46
{% 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 %}
48
48
ssl-default-server-ciphers {{ haproxy_global_ssl_server_ciphers }}
49
49
{% 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 %}
51
51
ssl-default-server-ciphersuites {{ haproxy_global_ssl_server_ciphersuites }}
52
52
{% 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 %}
54
54
ssl-server-verify {{ haproxy_global_ssl_server_verify }}
55
55
{% 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 %}
57
57
{% for stat in haproxy_global_stats %}
58
58
stats {{ stat }}
59
59
{% endfor %}
60
60
{% 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 %}
62
62
description {{ haproxy_global_description }}
63
63
{% endif %}
64
64
{% if haproxy_global_ulimit_n is defined and haproxy_global_ulimit_n > 0 %}
65
65
ulimit-n {{ haproxy_global_ulimit_n }}
66
66
{% 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 %}
68
68
{% for log in haproxy_global_logs %}
69
69
log {{ log }}
70
70
{% endfor %}
71
71
{% 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 %}
73
73
{% for tune in haproxy_global_tunes %}
74
74
{% for key , value in tune .items () %}
75
75
{{ key }} {{ value }}
78
78
{% endif %}
79
79
{% if haproxy_global_server_state_base is defined %}
80
80
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