Install galera-3 pkg before updating mysql

PROD-37043

Change-Id: I9fc7aefbedd0390652f010a7b13e0c8c157cf027
diff --git a/galera/upgrade/update_master.sls b/galera/upgrade/update_master.sls
index 1ffdac6..dd5648b 100644
--- a/galera/upgrade/update_master.sls
+++ b/galera/upgrade/update_master.sls
@@ -15,6 +15,15 @@
   pkg.latest:
   - names:
     - percona-xtrabackup-24
+  - require_in:
+    - pkg: galera_packages
+
+lib_galera_3_package:
+  pkg.latest:
+  - names:
+    - galera-3
+  - require_in:
+    - pkg: galera_packages
 
 galera_packages:
   pkg.latest:
diff --git a/galera/upgrade/update_slave.sls b/galera/upgrade/update_slave.sls
index 505f9b4..42bf617 100644
--- a/galera/upgrade/update_slave.sls
+++ b/galera/upgrade/update_slave.sls
@@ -11,6 +11,15 @@
   pkg.latest:
   - names:
     - percona-xtrabackup-24
+  - require_in:
+    - pkg: galera_packages
+
+lib_galera_3_package:
+  pkg.latest:
+  - names:
+    - galera-3
+  - require_in:
+    - pkg: galera_packages
 
 galera_packages:
   pkg.latest: