bfe479da2e
blivet on f20 and rhel7.0 is too old to be usable, so for now just install it from source so we can demo that the functionality works. Change-Id: I32ef5c19f45c3d427cd526b1bf5fb40376d4ccec
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
# The version of this in f20 and rhel7.0 is too old to use, but at least
|
|
# installing it should get all of the necessary deps installed.
|
|
sudo yum -y install python-blivet
|
|
|
|
virtualenv --setuptools --system-site-packages ${OS_DISK_CONFIG_VENV_DIR}
|
|
set +u
|
|
source ${OS_DISK_CONFIG_VENV_DIR}/bin/activate
|
|
set -u
|
|
|
|
# bug #1201253 : virtualenv-1.10.1 embeds setuptools-0.9.8, which
|
|
# doesn't manage correctly HTTPS sockets when downloading pbr from
|
|
# https://pypi.python.org/simple/ if using http_proxy and https_proxy
|
|
# envvars
|
|
${OS_DISK_CONFIG_VENV_DIR}/bin/pip install -U 'setuptools>=1.0'
|
|
# bug #1293812 : Avoid easy_install triggering on pbr.
|
|
${OS_DISK_CONFIG_VENV_DIR}/bin/pip install -U 'pbr>=0.6,<1.0'
|
|
if [ -e /opt/stack/os-disk-config/requirements.txt ]; then
|
|
reqs=/opt/stack/os-disk-config/requirements.txt
|
|
else
|
|
reqs=""
|
|
fi
|
|
if [ -n "$reqs" ] ; then
|
|
pip install -r $reqs
|
|
fi
|
|
|
|
pip install /opt/stack/os-disk-config
|
|
pip install /opt/stack/blivet
|
|
|
|
set +u
|
|
deactivate
|
|
set -u
|
|
|
|
ln -s ${OS_DISK_CONFIG_VENV_DIR}/bin/os-disk-config /usr/local/bin/
|