
This changeset - removes executable bits from README.md - adds executable bits to shell scripts These changes are largely symbolic, except for osbash.sh which users are expected to run without having to change permissions or passing it as an argument to bash. Partial-Bug: 1312764 Implements: blueprint openstack-training-labs Change-Id: I91cce85862171a360c31e1e7628a708dfefd70f1
28 lines
698 B
Bash
Executable File
28 lines
698 B
Bash
Executable File
#!/usr/bin/env bash
|
|
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"
|
|
|
|
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
|
|
if [[ ${OPENSTACK_RELEASE:-} = icehouse ]]; then
|
|
sudo yum install "http://repos.fedorapeople.org/repos/openstack/openstack-$OPENSTACK_RELEASE/rdo-release-$OPENSTACK_RELEASE-3.noarch.rpm"
|
|
else
|
|
echo 2>&1 "ERROR Unknown OpenStack release."
|
|
return 1
|
|
fi
|