diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-03-31 22:33:01 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-03-31 22:34:14 +0800 |
| commit | 5680bf0f2437ba9c75ccbcfce923df720f171c9b (patch) | |
| tree | 974dc29edca5d17199852efd95ea7da19d9cd31b | |
| parent | 981d8206abbe3aab42af371c8d8a76face9406b4 (diff) | |
| download | kolla-5680bf0f2437ba9c75ccbcfce923df720f171c9b.tar.gz kolla-5680bf0f2437ba9c75ccbcfce923df720f171c9b.zip | |
Enable the kibana access from the external network
Closes-Bug: #1564440
Change-Id: I8b9ff303d131fab18e51e9f99c64f4e4004f41b4
| -rw-r--r-- | ansible/roles/haproxy/templates/haproxy.cfg.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index aa808ee53..7968fa052 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -385,6 +385,16 @@ listen kibana {% 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 %} +{% if haproxy_enable_external_vip | bool %} + +listen kibana_external + bind {{ kolla_external_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 %} +{% endif %} listen elasticsearch option dontlog-normal |
