Ales Komarek | cba48ac | 2015-04-30 11:40:44 +0200 | [diff] [blame] | 1 | |
| 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')) %} |