aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-12-30 08:48:57 +0000
committerGerrit Code Review <review@openstack.org>2015-12-30 08:48:57 +0000
commit2dcaf5ed61dd1b8e0a2d612d35332329645b9707 (patch)
treebf3232b15db8275857f7c286f55ddfd94f2215e7 /ansible/roles/haproxy
parent19e75e8e71e6e0afe5bff089404025421bca6d86 (diff)
parent1a368c91349466167c818cfc2f56ebb5ace86872 (diff)
downloadkolla-2dcaf5ed61dd1b8e0a2d612d35332329645b9707.tar.gz
kolla-2dcaf5ed61dd1b8e0a2d612d35332329645b9707.zip
Merge "Add RadosGW container"
Diffstat (limited to 'ansible/roles/haproxy')
-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 beac9c296..fd520d6ed 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -173,3 +173,11 @@ listen magnum_api
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ magnum_api_port }} check inter 2000 rise 2 fall 5
{% endfor %}
{% endif %}
+
+{% if enable_ceph | bool and enable_ceph_rgw | bool %}
+listen radosgw
+ bind {{ kolla_internal_address}}:{{ rgw_port }}
+{% for host in groups['ceph-rgw'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ rgw_port }} check inter 2000 rise 2 fall 5
+{% endfor %}
+{% endif %}