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:
parent
5242c34f69
commit
ca7b1fa144
|
@ -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.
|
||||
|
|
@ -0,0 +1 @@
|
|||
pip-and-virtualenv
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
install-packages python-pbr
|
|
@ -56,7 +56,8 @@
|
|||
],
|
||||
"exclude-element": [
|
||||
"dkms",
|
||||
"openvswitch-datapath"
|
||||
"openvswitch-datapath",
|
||||
"pip-and-virtualenv"
|
||||
],
|
||||
"blacklist": [
|
||||
"10-cloud-init",
|
||||
|
|
|
@ -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:-"\
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue