blob: e1b543b44836bc417f84887a9224329f6ea47d7b [file] [log] [blame]
Pavel Cizinsky03a0ddc2016-08-23 09:46:33 +02001{%- if pillar.galera.master is defined %}
2{%- from "galera/map.jinja" import master with context %}
3{%- set service = master %}
4{%- endif %}
5{%- if pillar.galera.slave is defined %}
6{%- from "galera/map.jinja" import slave with context %}
7{%- set service = slave %}
8{%- endif %}
Ales Komarekcba48ac2015-04-30 11:40:44 +02009[client]
10host = localhost
11user = debian-sys-maint
Pavel Cizinsky03a0ddc2016-08-23 09:46:33 +020012password = {{ service.maintenance_password }}
Ales Komarekcba48ac2015-04-30 11:40:44 +020013socket = /var/run/mysqld/mysqld.sock
14
15[mysql_upgrade]
16host = localhost
17user = debian-sys-maint
Pavel Cizinsky03a0ddc2016-08-23 09:46:33 +020018password = {{ service.maintenance_password }}
Ales Komarekcba48ac2015-04-30 11:40:44 +020019socket = /var/run/mysqld/mysqld.sock
Pavel Cizinsky03a0ddc2016-08-23 09:46:33 +020020basedir = /usr