Merge "Percona Xtradb Cluster image building scripts"

This commit is contained in:
Jenkins
2015-08-31 05:12:05 +00:00
committed by Gerrit Code Review
6 changed files with 54 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
# CONTEXT: GUEST during CONSTRUCTION as ROOT
# PURPOSE: Install controller base required packages
set -e
set -o xtrace
export DEBIAN_FRONTEND=noninteractive
apt-get -y install percona-xtradb-cluster-server percona-xtrabackup
# Don't auto start mysql (we'll start it up in guest)
update-rc.d mysql defaults
update-rc.d mysql disable

View File

@@ -0,0 +1,10 @@
#!/bin/sh
# CONTEXT: GUEST during PRE-CONSTRUCTION as ROOT
# PURPOSE: Force a repo update
set -e
set -o xtrace
apt-get update

View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -e
#CONTEXT: chroot on host
#PURPOSE: Allows mysqld to create temporary files when restoring backups
cat <<EOF >>/etc/apparmor.d/local/usr.sbin.mysqld
/tmp/ rw,
/tmp/** rwk,
EOF