aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorNikita Gerasimov <nikita.gerasimov@oracle.com>2016-10-03 19:07:50 +0300
committerNikita Gerasimov <nikita.gerasimov@oracle.com>2016-10-03 19:07:50 +0300
commitcfff7b09a84ac55159e54cd141c84602d9447f0a (patch)
treee5dc454ae7f0b30bafb11e4bd15705c4c18de894 /ansible
parentb482611a2d50451c096e6a48eb48edd804a2011b (diff)
downloadkolla-cfff7b09a84ac55159e54cd141c84602d9447f0a.tar.gz
kolla-cfff7b09a84ac55159e54cd141c84602d9447f0a.zip
Change mysql-check in HAProxy to post MySQL 4.1
By default HAProxy send pre-4.1 authentication packets which are cause warnings on server side. To use modern MySQl authentication mysql-check configuration have to include post-41 option. Change-Id: I88609d3a0cc3ce4a10e64ba65230ba4d97f34419 Closes-Bug: 1629911
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/haproxy/templates/haproxy.cfg.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2
index f95eeddf0..ae8526ee0 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -589,7 +589,7 @@ listen mariadb
mode tcp
option tcplog
option tcpka
- option mysql-check user haproxy
+ option mysql-check user haproxy post-41
bind {{ kolla_internal_vip_address }}:{{ mariadb_port }}
{% for host in groups['mariadb'] %}
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ mariadb_port }} check inter 2000 rise 2 fall 5 {% if not loop.first %}backup{% endif %}