Fix package name
diff --git a/galera/map.jinja b/galera/map.jinja
index 4dc9935..f67a49e 100644
--- a/galera/map.jinja
+++ b/galera/map.jinja
@@ -9,7 +9,7 @@
'config': '/etc/mysql/my.cnf',
},
'RedHat': {
- 'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync', 'percona-xtrabackup-21'],
+ 'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync', 'percona-xtrabackup-22'],
'xtrabackup_repo': 'http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm',
'service': 'mariadb',
'wsrep_provider': '/usr/lib64/galera/libgalera_smm.so',
@@ -29,7 +29,7 @@
'config': '/etc/mysql/my.cnf',
},
'RedHat': {
- 'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync', 'percona-xtrabackup-21'],
+ 'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync', 'percona-xtrabackup-22'],
'xtrabackup_repo': 'http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm',
'service': 'mariadb',
'wsrep_provider': '/usr/lib64/galera/libgalera_smm.so',
diff --git a/galera/master.sls b/galera/master.sls
index 303e000..459e5fd 100644
--- a/galera/master.sls
+++ b/galera/master.sls
@@ -5,7 +5,7 @@
xtrabackup_repo:
pkg.installed:
- sources:
- - percona-xtrabackup: {{ master.xtrabackup_repo }}
+ - percona-release: {{ slave.xtrabackup_repo }}
- require_in:
- pkg: galera_packages
{%- endif %}
@@ -13,6 +13,7 @@
galera_packages:
pkg.installed:
- names: {{ master.pkgs }}
+ - refresh: true
galera_log_dir:
file.directory:
diff --git a/galera/slave.sls b/galera/slave.sls
index d7bcf58..6c91454 100644
--- a/galera/slave.sls
+++ b/galera/slave.sls
@@ -5,7 +5,7 @@
xtrabackup_repo:
pkg.installed:
- sources:
- - percona-xtrabackup: {{ slave.xtrabackup_repo }}
+ - percona-release: {{ slave.xtrabackup_repo }}
- require_in:
- pkg: galera_packages
{%- endif %}
@@ -13,6 +13,7 @@
galera_packages:
pkg.installed:
- names: {{ slave.pkgs }}
+ - refresh: true
galera_log_dir:
file.directory: