602c4d42de
- Execute test groups in serial to make sure no more than 2 database instance are created at the same time. - Remove some unneccesary tests - Remove unneeded datastore, e.g. 'Test_Datastore_1' - Remove unsupported trovestack subcommands - Move unsupported DIB elements to the 'deprecated-elements' folder - Decrease default value of 'agent_call_high_timeout' to 5min - Add initial_deplay for pooling task - Use socket file to connect with database instead of using localhost IP Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
29 lines
758 B
Bash
Executable File
29 lines
758 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# CONTEXT: GUEST during PRE-CONSTRUCTION as ROOT
|
|
# PURPOSE: Setup apt-repo list so that we can connect to Percona's repo
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
[ -n "${GUEST_USERNAME}" ] || die "GUEST_USERNAME needs to be set to the user for the guest image"
|
|
[ -n "${RELEASE}" ] || die "RELEASE must be set to either Precise or Quantal"
|
|
|
|
#5 add Percona GPG key
|
|
if [ ! -e /home/${GUEST_USERNAME}/.gnupg ]; then
|
|
mkdir -p /home/${GUEST_USERNAME}/.gnupg
|
|
fi
|
|
|
|
get_key_robust 1C4CBDCDCD2EFD2A
|
|
get_key_robust 9334A25F8507EFA5
|
|
|
|
# add Percona repo
|
|
# creates the percona sources list
|
|
cat <<EOL > /etc/apt/sources.list.d/percona.list
|
|
deb http://repo.percona.com/apt $RELEASE main
|
|
deb-src http://repo.percona.com/apt $RELEASE main
|
|
EOL
|
|
|
|
# force an update
|
|
apt-get update
|