diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-07-31 09:03:50 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-07-31 09:03:50 +0000 |
| commit | e9db94135da7f11db5100ed5347ac271b2396266 (patch) | |
| tree | 04e19c2e3a803f4b2562b90af6d840d8fca1d0fd /ansible/roles/haproxy | |
| parent | 7398b534ef9986193d21f473cf38df2b78442d0a (diff) | |
| parent | 0382909dbba7069c6d001b47931baa886450afd4 (diff) | |
| download | kolla-e9db94135da7f11db5100ed5347ac271b2396266.tar.gz kolla-e9db94135da7f11db5100ed5347ac271b2396266.zip | |
Merge "Rename role name to service name"
Diffstat (limited to 'ansible/roles/haproxy')
| -rwxr-xr-x | ansible/roles/haproxy/templates/haproxy.cfg.j2 | 4 | ||||
| -rw-r--r-- | ansible/roles/haproxy/templates/keepalived.conf.j2 | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index bcb1be674..8fc65de14 100755 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -21,7 +21,7 @@ listen mariadb # TODO(SamYaple): Make DB port configurable throughout Ansible bind {{ kolla_internal_address }}:3306 -{% for host in groups['database'] %} +{% for host in groups['mariadb'] %} server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:3306 check inter 2000 rise 2 fall 5 {% if not loop.first %}backup{% endif %} {% endfor %} @@ -32,7 +32,7 @@ listen rabbitmq # TODO(SamYaple): Make rabbitmq port configurable throughout Ansible bind {{ kolla_internal_address }}:5672 -{% for host in groups['message-broker'] %} +{% for host in groups['rabbitmq'] %} server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:5672 check inter 2000 rise 2 fall 5 {% endfor %} diff --git a/ansible/roles/haproxy/templates/keepalived.conf.j2 b/ansible/roles/haproxy/templates/keepalived.conf.j2 index 05062e5bd..e2c37dab5 100644 --- a/ansible/roles/haproxy/templates/keepalived.conf.j2 +++ b/ansible/roles/haproxy/templates/keepalived.conf.j2 @@ -8,7 +8,7 @@ vrrp_instance Floating { state MASTER interface {{ api_interface }} virtual_router_id 51 - priority {{ groups['database'].index(inventory_hostname) }} + priority {{ groups['rabbitmq'].index(inventory_hostname) }} advert_int 1 virtual_ipaddress { {{ kolla_internal_address }} |
