aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-08-05 03:23:43 +0000
committerGerrit Code Review <review@openstack.org>2016-08-05 03:23:43 +0000
commit05f381df6a0587b9a9f9bef399924cdebc7b64c9 (patch)
tree88c0478fd1c16c5d95092e7b346a9afce87d0271 /ansible/roles/haproxy
parent88289563b5bcf4ce80a10901e4d5f501c54e1595 (diff)
parent4cd95dbcc509ccec5a8b83294a251623c2895d9f (diff)
downloadkolla-05f381df6a0587b9a9f9bef399924cdebc7b64c9.tar.gz
kolla-05f381df6a0587b9a9f9bef399924cdebc7b64c9.zip
Merge "Enable central logging without deploying elasticsearch/kibana"
Diffstat (limited to 'ansible/roles/haproxy')
-rw-r--r--ansible/roles/haproxy/templates/haproxy.cfg.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2
index c808a3da8..d0949ed98 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -364,7 +364,7 @@ listen radosgw_external
{% endif %}
{% endif %}
-{% if enable_central_logging | bool %}
+{% if enable_kibana | bool %}
userlist kibanauser
user {{ kibana_user }} insecure-password {{ kibana_password }}
@@ -388,7 +388,9 @@ listen kibana_external
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 %}
{% endif %}
+{% endif %}
+{% if enable_elasticsearch | bool %}
listen elasticsearch
option dontlog-normal
bind {{ kolla_internal_vip_address }}:{{ elasticsearch_port }}