{%- if pillar.galera.get('master',{}).get('enabled', False) %} {%- from "galera/map.jinja" import master with context %} {%- set service = master %} {%- endif %} {%- if pillar.galera.get('slave',{}).get('enabled', False) %} {%- from "galera/map.jinja" import slave with context %} {%- set service = slave %} {%- endif %} [client] host = localhost user = debian-sys-maint password = {{ service.maintenance_password }} socket = /var/run/mysqld/mysqld.sock [mysql_upgrade] host = localhost user = debian-sys-maint password = {{ service.maintenance_password }} socket = /var/run/mysqld/mysqld.sock basedir = /usr