Files
trove-integration/scripts/files/elements/ubuntu-mariadb/install.d/30-mariadb
Andrew Bramley c4a9a0f1f0 Fix percona-xtrabackup issue with backup tests
It appears that a recent new version of
percona-xtrabackup has broken the backup tests.

This fix pins the version of xtrabackup to 2.2

Change-Id: I5e838b60dd5c9d7254c6a2c1177257bcd9f6da73
Closes-Bug:#1509551
2015-10-25 09:20:57 -04:00

27 lines
831 B
Bash
Executable File

#!/bin/sh
# CONTEXT: GUEST during CONSTRUCTION as ROOT
# PURPOSE: Install controller base required packages
set -e
set -o xtrace
export DEBIAN_FRONTEND=noninteractive
# NOTE(vkmc): Using MariaDB repositories is required
# https://mariadb.com/kb/en/mariadb/installing-mariadb-deb-files/
apt-get -y install software-properties-common
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
# Pin MariaDB repository
sudo echo -e "Package: *\nPin: origin ftp.osuosl.org\nPin-Priority: 1000" > /etc/apt/preferences.d/mariadb.pref
apt-get -y update
apt-get -y install libmariadbclient18 mariadb-server percona-xtrabackup-22
cat >/etc/mysql/conf.d/no_perf_schema.cnf <<_EOF_
[mysqld]
performance_schema = off
_EOF_