aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-07-31 08:50:47 +0000
committerGerrit Code Review <review@openstack.org>2015-07-31 08:50:47 +0000
commite93bb8ad7b6fed77237ae1bc30b48c6011fc1f7e (patch)
tree47ad03a0b2f221d3cbeeb12660a9c5bec9c0885c /ansible/roles/haproxy
parent240bed12caf0f45a4e0982c50719ff06675013a7 (diff)
parent3bc9adf9b2756a96ac549cbd6c1edb57f75a019d (diff)
downloadkolla-e93bb8ad7b6fed77237ae1bc30b48c6011fc1f7e.tar.gz
kolla-e93bb8ad7b6fed77237ae1bc30b48c6011fc1f7e.zip
Merge "Forces metadata to bind to single interface"
Diffstat (limited to 'ansible/roles/haproxy')
-rwxr-xr-xansible/roles/haproxy/templates/haproxy.cfg.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2
index 07fe7aacf..bcb1be674 100755
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -66,6 +66,13 @@ listen nova_api
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ nova_api_port }} check inter 2000 rise 2 fall 5
{% endfor %}
+listen nova_metadata
+ # TODO(SamYaple): Make metadata port configurable throughout Ansible
+ bind {{ kolla_internal_address }}:8775
+{% for host in groups['nova-api'] %}
+ server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:8775 check inter 2000 rise 2 fall 5
+{% endfor %}
+
listen neutron_server
bind {{ kolla_internal_address }}:{{ neutron_server_port }}
{% for host in groups['neutron-server'] %}