aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/haproxy
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/haproxy')
-rwxr-xr-xansible/roles/haproxy/templates/haproxy.cfg.j24
-rw-r--r--ansible/roles/haproxy/templates/keepalived.conf.j22
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 }}