blob: ec21f3fcd9c0ad25d787c375d9ae8602ea05e26f [file] [log] [blame]
{%- set master = salt['grains.filter_by']({
'Debian': {
'pkgs': ['mysql-server-wsrep', 'galera', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup-21', 'socat'],
'service': 'mysql',
'log_file': '/var/log/mysql.log',
'config': '/etc/mysql/my.cnf',
},
'RedHat': {
'pkgs': ['mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync'],
'service': 'mysqld',
'log_file': '/var/log/mariadb/mariadb.log',
'config': '/etc/my.cnf',
},
}, merge=salt['pillar.get']('galera:master')) %}
{%- set slave = salt['grains.filter_by']({
'Debian': {
'pkgs': ['mysql-server-wsrep', 'galera', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup-21', 'socat'],
'service': 'mysql',
'log_file': '/var/log/mysql.log',
'config': '/etc/mysql/my.cnf',
},
'RedHat': {
'pkgs': ['mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync'],
'service': 'mysqld',
'log_file': '/var/log/mariadb/mariadb.log',
'config': '/etc/my.cnf',
},
}, merge=salt['pillar.get']('galera:slave')) %}