diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-04-05 11:57:47 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-04-05 11:57:47 +0000 |
| commit | 3161202bd92cab28b3f93494ea84acea62a28535 (patch) | |
| tree | f1afb1da19abfc6f31fdd3ace241b130effcf54c | |
| parent | 4e62c583b59b15e0c36d99437cb7137a34e922da (diff) | |
| parent | 5680bf0f2437ba9c75ccbcfce923df720f171c9b (diff) | |
| download | kolla-3161202bd92cab28b3f93494ea84acea62a28535.tar.gz kolla-3161202bd92cab28b3f93494ea84acea62a28535.zip | |
Merge "Enable the kibana access from the external network"
| -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 |
