1d74db7df0
I just thought I'd dash off a quick patch and change the underscore to a dash. Change-Id: Ib34cfc8039de01be7e37176648482f9815ac3848 Closes-Bug: #1589734
33 lines
1.5 KiB
Django/Jinja
33 lines
1.5 KiB
Django/Jinja
{% set wsrep_driver = '/usr/lib/galera/libgalera_smm.so' if kolla_base_distro == 'ubuntu' else '/usr/lib64/galera/libgalera_smm.so' %}
|
|
[mysqld]
|
|
bind-address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
|
|
port={{ mariadb_port }}
|
|
|
|
log-error=/var/log/kolla/mariadb/mariadb.log
|
|
|
|
binlog_format=ROW
|
|
default-storage-engine=innodb
|
|
innodb_autoinc_lock_mode=2
|
|
|
|
datadir=/var/lib/mysql/
|
|
|
|
wsrep_cluster_address=gcomm://{% if (groups['mariadb'] | length) > 1 %}{% for host in groups['mariadb'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
|
|
|
|
wsrep_provider_options=gmcast.listen_addr=tcp://{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_wsrep_port }};ist.recv_addr={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_ist_port }}
|
|
|
|
wsrep_node_address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}
|
|
wsrep_sst_receive_address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_sst_port }}
|
|
|
|
wsrep_provider={{ wsrep_driver }}
|
|
wsrep_cluster_name="{{ database_cluster_name }}"
|
|
wsrep_node_name={{ ansible_hostname }}
|
|
wsrep_sst_method=xtrabackup-v2
|
|
wsrep_sst_auth={{ database_user }}:{{ database_password }}
|
|
wsrep_slave_threads=4
|
|
wsrep_notify_cmd=/usr/local/bin/wsrep-notify.sh
|
|
|
|
max_connections=10000
|
|
|
|
[server]
|
|
pid-file=/var/lib/mysql/mariadb.pid
|