kolla/ansible/roles/mariadb/templates/mariadb.json.j2
Ettore Simone b4759b280c Enable HAProxy consider MariaDB wsrep_local_state
This patch enable wsrep_notify_cmd to rename haproxy user in haproxy_blocked
when the node is not ready to serve and restore it when ready.

Change-Id: I4f49960d7ff2fa689d6ea730b2574f16f083edc1
Closes-Bug: 1578752
Closes-Bug: 1587752
2016-06-03 01:30:00 +02:00

19 lines
557 B
Django/Jinja

{% set mysql_dir = 'mysql' if kolla_base_distro in ['ubuntu', 'debian'] else '' %}
{
"command": "/usr/bin/mysqld_safe",
"config_files": [
{
"source": "{{ container_config_directory }}/galera.cnf",
"dest": "/etc/{{ mysql_dir }}/my.cnf",
"owner": "mysql",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/wsrep_notify.sh",
"dest": "/usr/local/bin/wsrep_notify.sh",
"owner": "mysql",
"perm": "0700"
}
]
}