blob: e3090fbd84971c6ae40f6a923c1ef8baa295a08e [file] [log] [blame]
{%- 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')) %}