aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/haproxy/templates/haproxy.cfg.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2
index 542d86247..aa808ee53 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -374,8 +374,14 @@ listen radosgw_external
{% endif %}
{% if enable_central_logging | bool %}
+
+userlist kibanauser
+ user {{ kibana_user }} insecure-password {{ kibana_password }}
+
listen kibana
bind {{ kolla_internal_vip_address }}:{{ kibana_server_port }}
+ acl auth_acl http_auth(kibanauser)
+ http-request auth realm basicauth unless auth_acl
{% for host in groups['kibana'] %}
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ kibana_server_port }} check inter 2000 rise 2 fall 5
{% endfor %}