Merge "Remove script logic for CentOS/RHEL < 7"

This commit is contained in:
Zuul 2024-02-29 09:29:18 +00:00 committed by Gerrit Code Review
commit dc080037b9
1 changed files with 7 additions and 23 deletions

View File

@ -176,27 +176,16 @@ $SUDO $PKG_MGR -y install puppet \
OS_NAME=$(facter operatingsystem) OS_NAME=$(facter operatingsystem)
OS_VERSION=$(facter operatingsystemmajrelease) OS_VERSION=$(facter operatingsystemmajrelease)
if ([ "$OS_NAME" = "RedHat" ] || [ "$OS_NAME" = "CentOS" ]) && [ $OS_VERSION -gt 7 ]; then $SUDO $PKG_MGR -y install python3-setuptools \
$SUDO $PKG_MGR -y install python3-setuptools \ python3-devel \
python3-devel \ python3-wheel \
python3-wheel \ python3-pyyaml
python3-pyyaml
else
$SUDO $PKG_MGR -y install python-setuptools \
python-devel \
yum-plugin-priorities
fi
# Don't assume pip is installed # Don't assume pip is installed
which pip3 && PIP=pip3 which pip3 && PIP=pip3
if [ -z $PIP ]; then if [ -z $PIP ]; then
if ([ "$OS_NAME" = "RedHat" ] || [ "$OS_NAME" = "CentOS" ]) && [ $OS_VERSION -gt 7 ]; then $SUDO $PKG_MGR -y install python3-pip python3-wheel
$SUDO $PKG_MGR -y install python3-pip python3-wheel PIP=pip3
PIP=pip3
else
which pip || $SUDO easy_install pip
PIP=pip
fi
fi fi
# Try to use pre-cached cirros images, if available, otherwise download them # Try to use pre-cached cirros images, if available, otherwise download them
@ -282,12 +271,7 @@ if [ "${INSTALL_FROM_SOURCE}" = true ]; then
fi fi
export PUPPETFILE_DIR=/usr/share/openstack-puppet/modules export PUPPETFILE_DIR=/usr/share/openstack-puppet/modules
export GEM_HOME=/tmp/packstackgems export GEM_HOME=/tmp/packstackgems
if ([ "$OS_NAME" = "RedHat" ] || [ "$OS_NAME" = "CentOS" ]) && [ $OS_VERSION -gt 8 ]; then $SUDO gem install r10k
$SUDO gem install r10k
else
$SUDO gem install gettext -v 3.2.9 --no-ri --no-rdoc
$SUDO gem install r10k -v 2.6.4 --no-ri --no-rdoc
fi
# make sure there is no puppet module pre-installed # make sure there is no puppet module pre-installed
$SUDO rm -rf "${PUPPETFILE_DIR:?}/"* $SUDO rm -rf "${PUPPETFILE_DIR:?}/"*
install_modules install_modules