aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCarthy <james.m.mccarthy@oracle.com>2015-10-06 10:08:40 +0100
committerJames McCarthy <james.m.mccarthy@oracle.com>2015-10-06 10:30:04 +0100
commitc879b1f2711db6aefe7dbf88b0b08d3a32e1e02a (patch)
treeb52983b5c0f79e6fcbe3914a98288069b557c0fc
parentf9d9abd408d0009f63ecae82491defeebf5b36d4 (diff)
downloadkolla-c879b1f2711db6aefe7dbf88b0b08d3a32e1e02a.tar.gz
kolla-c879b1f2711db6aefe7dbf88b0b08d3a32e1e02a.zip
Updated haproxy config to include swift api
Closes-bug: #1503197 backport: liberty Change-Id: I5c233298312dabeb43efa4821855c77fd81aae67
-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 0c8d59c91..b2a0db1c0 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -149,3 +149,11 @@ listen ironic_api
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ ironic_api_port }} check inter 2000 rise 2 fall 5
{% endfor %}
{% endif %}
+
+{% if enable_swift | bool %}
+listen swift_api
+ bind {{ kolla_internal_address}}:{{ swift_proxy_server_port }}
+{% for host in groups['swift-proxy-server'] %}
+ 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 %}