Merge "Do not install pip in amphora when using distribution packages"

This commit is contained in:
Zuul 2018-02-26 12:04:49 +00:00 committed by Gerrit Code Review
commit 95c83e6462
2 changed files with 9 additions and 2 deletions

View File

@ -128,7 +128,7 @@ while getopts "a:b:c:d:ehi:no:pt:r:s:vw:x" opt; do
AMP_OUTPUTFILENAME=$(readlink -f $OPTARG)
;;
p)
export DIB_INSTALLTYPE_amphora_agent=package
AMP_PACKAGE_INSTALL=1
;;
r)
AMP_ROOTPW=$OPTARG
@ -191,6 +191,8 @@ AMP_IMAGESIZE=${AMP_IMAGESIZE:-2}
AMP_DISABLE_SSHD=${AMP_DISABLE_SSHD:-0}
AMP_PACKAGE_INSTALL=${AMP_PACKAGE_INSTALL:-0}
AMP_ENABLE_FULL_MAC_SECURITY=${AMP_ENABLE_FULL_MAC_SECURITY:-0}
if [ "$AMP_BASEOS" = "rhel" ] && [ "$AMP_IMAGESIZE" -lt 3 ]; then
@ -318,6 +320,12 @@ else
AMP_element_sequence="$AMP_element_sequence ${AMP_BASEOS}"
fi
if [ "$AMP_PACKAGE_INSTALL" -eq 1 ]; then
export DIB_INSTALLTYPE_amphora_agent=package
else
# We will need pip for amphora-agent
AMP_element_sequence="$AMP_element_sequence pip-and-virtualenv"
fi
# Add our backend element (haproxy, etc.)
AMP_element_sequence="$AMP_element_sequence $AMP_BACKEND"

View File

@ -1,6 +1,5 @@
dib-init-system
package-installs
pkg-map
pip-and-virtualenv
source-repositories
svc-map