aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Belogrudov <vladislav.belogrudov@oracle.com>2015-10-28 15:22:25 +0300
committerSam Yaple <sam@yaple.net>2015-11-01 20:27:02 +0000
commitf4eb89f8b08fbc1b0aee49f20cb7a60684c10f44 (patch)
tree51dad9b49258adbcac931c96dddd7cedfdb461a5
parent9bb405848932fcd97191a857cff2231239e904fe (diff)
downloadkolla-f4eb89f8b08fbc1b0aee49f20cb7a60684c10f44.tar.gz
kolla-f4eb89f8b08fbc1b0aee49f20cb7a60684c10f44.zip
HAProxy does not have murano-api configuration
This commit fixes configuration for murano-api HA Change-Id: I6b6f2c266cbb4c8131a949e31094572dad91fc40 Closes-Bug: #1510921 Backport: Liberty
-rw-r--r--ansible/roles/haproxy/templates/haproxy.cfg.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2
index b2a0db1c0..3e31edb0e 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -157,3 +157,11 @@ listen swift_api
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ swift_proxy_server_port }} check inter 2000 rise 2 fall 5
{% endfor %}
{% endif %}
+
+{% if enable_murano | bool %}
+listen murano_api
+ bind {{ kolla_internal_address }}:{{ murano_api_port }}
+{% for host in groups['murano-api'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ murano_api_port }} check inter 2000 rise 2 fall 5
+{% endfor %}
+{% endif %}