Allow do disable SSL only for stats frontend
Currently there is no way of disabling SSL connection for stats frontend as it implies more global variable. However, for some systems consuming self-signed root certificate might be not an option and disabling SSL verification tricky. Thus, we introduce new variable that allows to nicely control if SSL should be served for stats frontend or not. Change-Id: Ic4bc4393ec89469876e9e95b12bb9c4069972713
This commit is contained in:
committed by
Dmitriy Rabotyagov
parent
a502817a89
commit
6025eaac36
@@ -30,6 +30,7 @@ haproxy_interval: 12000
|
||||
haproxy_stats_enabled: False
|
||||
haproxy_stats_bind_address: 127.0.0.1
|
||||
haproxy_stats_port: 1936
|
||||
haproxy_stats_ssl: "{{ haproxy_ssl }}"
|
||||
haproxy_username: admin
|
||||
haproxy_stats_password: secrete
|
||||
haproxy_stats_refresh_interval: 60
|
||||
|
||||
@@ -42,7 +42,7 @@ defaults
|
||||
|
||||
{% if haproxy_stats_enabled | bool %}
|
||||
listen stats
|
||||
bind {{ haproxy_stats_bind_address }}:{{ haproxy_stats_port }} {% if haproxy_ssl | bool %}ssl crt {{ haproxy_ssl_cert_path }}/haproxy_{{ ansible_facts['hostname'] }}-{{ haproxy_bind_internal_lb_vip_address }}.pem{% endif %}
|
||||
bind {{ haproxy_stats_bind_address }}:{{ haproxy_stats_port }} {% if haproxy_stats_ssl | bool %}ssl crt {{ haproxy_ssl_cert_path }}/haproxy_{{ ansible_facts['hostname'] }}-{{ haproxy_bind_internal_lb_vip_address }}.pem{% endif %}
|
||||
|
||||
{% if haproxy_stats_process is defined %}
|
||||
bind-process {{ haproxy_stats_process }}
|
||||
|
||||
Reference in New Issue
Block a user