
These are a few minimal changes to make the CentOS basedisk build. Change-Id: I186c74c26312d5cd567c95ff8a9e7341cf01b3a4
39 lines
1.0 KiB
Bash
Executable File
39 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -o errexit -o nounset
|
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
|
source "$TOP_DIR/config/paths"
|
|
source "$CONFIG_DIR/openstack"
|
|
# Pick up VM_PROXY
|
|
source "$CONFIG_DIR/localrc"
|
|
source "$LIB_DIR/functions.guest.sh"
|
|
|
|
indicate_current_auto
|
|
|
|
exec_logfile
|
|
|
|
function set_yum_proxy {
|
|
local YUM_FILE=/etc/yum.conf
|
|
if [ -z "${VM_PROXY-}" ]; then
|
|
return 0;
|
|
fi
|
|
echo "proxy=${VM_PROXY}" | sudo tee -a $YUM_FILE
|
|
}
|
|
|
|
set_yum_proxy
|
|
|
|
# Enable RDO repo
|
|
case "${OPENSTACK_RELEASE:-}" in
|
|
kilo)
|
|
sudo yum install -y "https://repos.fedorapeople.org/repos/openstack/openstack-kilo/rdo-release-kilo-1.noarch.rpm"
|
|
;;
|
|
liberty)
|
|
sudo yum install -y "https://repos.fedorapeople.org/repos/openstack/openstack-liberty/rdo-release-liberty-2.noarch.rpm"
|
|
;;
|
|
mitaka)
|
|
sudo yum install -y "https://repos.fedorapeople.org/repos/openstack/openstack-mitaka/rdo-release-mitaka-3.noarch.rpm"
|
|
;;
|
|
*)
|
|
echo 2>&1 "ERROR Unknown OpenStack release."
|
|
exit 1
|
|
esac
|