Add option to not create a virtualenv.

This commit is contained in:
Tim Abbott 2016-07-12 11:46:49 -07:00
parent f57a17abdf
commit 80bf7e32a4
1 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,7 @@ DEPLOYMENT_TYPE="${DEPLOYMENT_TYPE:-voyager}"
# zulip::voyager for an all-in-one system or zulip::dockervoyager for
# Docker. Use e.g. zulip::app_frontend for a Zulip frontend server.
PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::voyager}"
VIRTUALENV_NEEDED="${VIRTUALENV_NEEDED:-yes}"
apt-get install -y lsb-release
@ -39,7 +40,9 @@ apt-get -y dist-upgrade $APT_OPTIONS
apt-get install -y puppet git python python-six $ADDITIONAL_PACKAGES
# Create and activate a virtualenv
/root/zulip/scripts/lib/create-production-venv /root/zulip/zulip-venv
if [ "$VIRTUALENV_NEEDED" = "yes" ]; then
/root/zulip/scripts/lib/create-production-venv /root/zulip/zulip-venv
fi
# puppet apply
mkdir -p /etc/zulip