/usr/share/tripleo-image-elements/mariadb-dev/pre-install.d/05-mysql-mariadb-repo is in python-tripleo-image-elements 0.7.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #!/bin/bash
set -e
set -o xtrace
# repo urls
# 5.5 version is used instead of 10.0 (which is already out) because of
# dependency issues - python-mysql depends on mariadb-libs which conflicts
# with mysql-galera-server pkg
# http://yum.mariadb.org/5.5/fedora20-amd64
# http://yum.mariadb.org/5.5/fedora20-x86
# http://yum.mariadb.org/5.5/rhel6-amd64
# http://yum.mariadb.org/5.5/rhel6-x86
# http://mirror.jmu.edu/pub/mariadb/repo/5.5/ubuntu saucy main
# http://mirror.jmu.edu/pub/mariadb/repo/5.5/debian wheezy main
DISTRO=`lsb_release -si` || true
if [ "$DISTRO" == "RedHatEnterpriseServer" ];then
DIST_DIR="rhel"
else
DIST_DIR=$(echo "$DISTRO"|tr A-Z a-z)
fi
function add_yum_repo() {
ver=`lsb_release -sr`
cat > /etc/yum.repos.d/mariadb.repo <<eof
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/$DIST_DIR$ver-$MARIADB_ARCH
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
eof
rpmkeys --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
}
function add_apt_repo() {
local codename=`lsb_release -sc`
# http://keyserver.ubuntu.com is used both for debian and ubuntu
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
add-apt-repository "deb http://mariadb.mirror.iweb.com//repo/5.5/$DIST_DIR $codename main"
apt-get update
}
if [[ "RedHatEnterpriseServer CentOS Fedora" =~ "$DISTRO" ]]; then
add_yum_repo
elif [[ "Ubuntu Debian" =~ "$DISTRO" ]]; then
add_apt_repo
else
echo "Distribution '$DISTRO' is not supported"
exit 1
fi
|