From 2f63db463f5263272e07cc2c47d54db8b8fcc83d Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 18 Jan 2016 16:56:12 -0500 Subject: [PATCH] haproxy.cfg change --- roles/proxy/templates/haproxy.cfg.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/proxy/templates/haproxy.cfg.j2 b/roles/proxy/templates/haproxy.cfg.j2 index 1fe48b4..9df8b86 100644 --- a/roles/proxy/templates/haproxy.cfg.j2 +++ b/roles/proxy/templates/haproxy.cfg.j2 @@ -21,6 +21,9 @@ listen mysql-cluster mode tcp option mysql-check user haproxy_check balance roundrobin + {% for db_server in dbfirstclustermachine %} + server {{ db_server }} {{ db_server }}:3306 check + {% endfor %} {% for db_server in dbservers %} server {{ db_server }} {{ db_server }}:3306 check {% endfor %}