|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- set master = salt['grains.filter_by']({ |
|
|
{%- set master = salt['grains.filter_by']({ |
|
|
'Debian': { |
|
|
'Debian': { |
|
|
'pkgs': ['mysql-server-wsrep-5.6', 'galera-3', 'rsync', 'python-mysqldb', 'psmisc', 'netcat', 'percona-xtrabackup', 'socat', 'libdbd-mysql', 'python-pymysql'], |
|
|
|
|
|
|
|
|
'pkgs': ['mysql-wsrep-5.6', 'galera-3', 'rsync', 'python-mysqldb', 'psmisc', 'netcat', 'percona-xtrabackup', 'socat', 'libdbd-mysql', 'python-pymysql'], |
|
|
'service': 'mysql', |
|
|
'service': 'mysql', |
|
|
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so', |
|
|
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so', |
|
|
'log_file': '/var/log/mysql.log', |
|
|
'log_file': '/var/log/mysql.log', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- set slave = salt['grains.filter_by']({ |
|
|
{%- set slave = salt['grains.filter_by']({ |
|
|
'Debian': { |
|
|
'Debian': { |
|
|
'pkgs': ['mysql-server-wsrep-5.6', 'galera-3', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup', 'socat', 'libdbd-mysql', 'python-pymysql'], |
|
|
|
|
|
|
|
|
'pkgs': ['mysql-wsrep-5.6', 'galera-3', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup', 'socat', 'libdbd-mysql', 'python-pymysql'], |
|
|
'service': 'mysql', |
|
|
'service': 'mysql', |
|
|
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so', |
|
|
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so', |
|
|
'log_file': '/var/log/mysql.log', |
|
|
'log_file': '/var/log/mysql.log', |