A lot of changes based on dry run results
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
apt: name=haproxy state=present
|
||||
|
||||
- name: Create haproxy config file
|
||||
template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg
|
||||
template: src=../roles/proxy/templates/haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg
|
||||
|
||||
- name: Enable init script
|
||||
replace: dest='/etc/default/haproxy'
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user