blob: 48896de870d2ef716e61af0e14703854c208e5c1 [file] [log] [blame]
Ales Komarekcba48ac2015-04-30 11:40:44 +02001
2{%- set master = salt['grains.filter_by']({
3 'Debian': {
4 'pkgs': ['mysql-server-wsrep', 'galera', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup-21', 'socat'],
5 'service': 'mysql',
6 'config': '/etc/mysql/conf.d/wsrep.cnf',
7 },
8 'RedHat': {
9 'pkgs': ['MySQL-server', 'galera', 'MySQL-client', 'MySQL-python', 'rsync'],
10 'service': 'mysql',
11 },
12}, merge=salt['pillar.get']('galera:master')) %}
13
14{%- set slave = salt['grains.filter_by']({
15 'Debian': {
16 'pkgs': ['mysql-server-wsrep', 'galera', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup-21', 'socat'],
17 'service': 'mysql',
18 'config': '/etc/mysql/conf.d/wsrep.cnf',
19 },
20 'RedHat': {
21 'pkgs': ['MySQL-server', 'galera', 'MySQL-client', 'MySQL-python', 'rsync'],
22 'service': 'mysql',
23 },
24}, merge=salt['pillar.get']('galera:slave')) %}