Don't ever install python-pip and python-virtualenv on RHOS 6. For the

undercloud install, we can just blacklist the element in the json file. For
image builds, we need to instead use an override element that doesn't install
anything.
This commit is contained in:
James Slagle 2015-01-06 15:54:21 -05:00
parent 5242c34f69
commit ca7b1fa144
6 changed files with 10 additions and 9 deletions

View File

@ -0,0 +1,4 @@
This element will override the behavior from the pip-and-virtualenv element
from tripleo-image-elements so that python-pip and python-virtualenv are never
installed.

View File

@ -0,0 +1 @@
pip-and-virtualenv

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -eux
install-packages python-pbr

View File

@ -56,7 +56,8 @@
],
"exclude-element": [
"dkms",
"openvswitch-datapath"
"openvswitch-datapath",
"pip-and-virtualenv"
],
"blacklist": [
"10-cloud-init",

View File

@ -54,7 +54,7 @@ fi
export PACKAGES=${PACKAGES:-"1"}
if [ "$PACKAGES" = "1" ]; then
export DIB_COMMON_ELEMENTS="$DIB_COMMON_ELEMENTS tripleo-image-elements undercloud-package-install"
export DIB_COMMON_ELEMENTS="$DIB_COMMON_ELEMENTS tripleo-image-elements undercloud-package-install pip-and-virtualenv-override"
fi
export OVERCLOUD_CONTROL_DIB_EXTRA_ARGS=${OVERCLOUD_CONTROL_DIB_EXTRA_ARGS:-"\

View File

@ -17,9 +17,9 @@ else
fi
export ELEMENTS_PATH=${ELEMENTS_PATH:-"\
/usr/share/instack-undercloud:\
/usr/share/tripleo-image-elements:\
/usr/share/diskimage-builder/elements:\
/usr/share/instack-undercloud"}
/usr/share/diskimage-builder/elements"}
echo "Sourcing answers file from instack.answers..."
source ~/instack.answers