| {%- if salt['pillar.get']('xtrabackup:client:qpress:source') == 'pkg' %} |
| {% set client_pkgs_list = ['percona-xtrabackup-24', 'qpress'] %} |
| {%- else %} |
| {% set client_pkgs_list = ['percona-xtrabackup-24' ] %} |
| {%- endif %} |
| |
| {% set client = salt['grains.filter_by']({ |
| 'Debian': { |
| 'pkgs': client_pkgs_list, |
| 'backup_dir': '/var/backups/mysql/xtrabackup' |
| }, |
| 'RedHat': { |
| 'pkgs': client_pkgs_list, |
| 'backup_dir': '/var/backups/mysql/xtrabackup' |
| }, |
| }, merge=salt['pillar.get']('xtrabackup:client')) %} |
| |
| {% set server = salt['grains.filter_by']({ |
| 'Debian': { |
| 'pkgs': ['rsync'], |
| 'restrict_clients': True, |
| 'backup_dir': '/var/backups/mysql/xtrabackup' |
| }, |
| 'RedHat': { |
| 'pkgs': ['rsync'], |
| 'restrict_clients': True, |
| 'backup_dir': '/var/backups/mysql/xtrabackup' |
| }, |
| }, merge=salt['pillar.get']('xtrabackup:server')) %} |