tripleo-image-elements/elements/tuskar/environment.d/10-tuskar-venv-dir.bash
Dan Prince e42f3fd674 Wire in _EXTRA_INSTALL_OPTS...
Updates the various environment.d elements so that we can control
with a high level of granularity whether we enable
--system-site-packages in our virtualenvs. At a high level
OPENSTACK_EXTRA_INSTALL_OPTS can be set to -s to allow
os-svc-install to enable --system-site-packages globally.
The per element environment variables if set will override this
setting.

A step towards supporting both isolated and global venvs
for OpenStack elements installed from git source.

Change-Id: Ic3dc42717a90f02a58af345c5564336b64f930e4
2014-04-19 08:08:45 -04:00

7 lines
243 B
Bash

if [ -z "${TUSKAR_VENV_DIR:-}" ]; then
export TUSKAR_VENV_DIR=${OPENSTACK_VENV_DIR:-"/opt/stack/venvs/tuskar"}
fi
if [ -z "${TUSKAR_EXTRA_INSTALL_OPTS:-}" ]; then
export TUSKAR_EXTRA_INSTALL_OPTS=${OPENSTACK_EXTRA_INSTALL_OPTS:-""}
fi