A lot of changes based on dry run results

This commit is contained in:
2016-02-03 00:01:26 -05:00
parent bf4135224c
commit ba765059fc
10 changed files with 27 additions and 17 deletions

View File

@@ -21,7 +21,7 @@ listen mysql-cluster
mode tcp
option mysql-check user haproxy_check
balance roundrobin
{% for db_server in db %}
{% for db_server in groups['db'] %}
server {{ hostvars[db_server]['ansible_eth1']['ipv4']['address'] }} {{ hostvars[db_server]['ansible_eth1']['ipv4']['address'] }}:3306 check
{% endfor %}
@@ -39,6 +39,6 @@ backend wrestlingdev
redirect scheme https if !{ ssl_fc }
balance roundrobin
cookie SERVERID insert indirect nocache
{% for web_server in web %}
{% for web_server in groups['web'] %}
server {{ hostvars[web_server]['ansible_eth1']['ipv4']['address'] }} {{ hostvars[web_server]['ansible_eth1']['ipv4']['address'] }}:443 check cookie {{ hostvars[web_server]['ansible_eth1']['ipv4']['address'] }} ssl verify none
{% endfor %}