Pavel Cizinsky | 03a0ddc | 2016-08-23 09:46:33 +0200 | [diff] [blame^] | 1 | {%- 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 Komarek | cba48ac | 2015-04-30 11:40:44 +0200 | [diff] [blame] | 9 | [client] |
| 10 | host = localhost |
| 11 | user = debian-sys-maint |
Pavel Cizinsky | 03a0ddc | 2016-08-23 09:46:33 +0200 | [diff] [blame^] | 12 | password = {{ service.maintenance_password }} |
Ales Komarek | cba48ac | 2015-04-30 11:40:44 +0200 | [diff] [blame] | 13 | socket = /var/run/mysqld/mysqld.sock |
| 14 | |
| 15 | [mysql_upgrade] |
| 16 | host = localhost |
| 17 | user = debian-sys-maint |
Pavel Cizinsky | 03a0ddc | 2016-08-23 09:46:33 +0200 | [diff] [blame^] | 18 | password = {{ service.maintenance_password }} |
Ales Komarek | cba48ac | 2015-04-30 11:40:44 +0200 | [diff] [blame] | 19 | socket = /var/run/mysqld/mysqld.sock |
Pavel Cizinsky | 03a0ddc | 2016-08-23 09:46:33 +0200 | [diff] [blame^] | 20 | basedir = /usr |