Ensure the latest rpms versions are installed

bindep installs all the deps in one transaction.
This can leave some deps at an unsupported version.
Run through the deps after the install with an update.

Change-Id: I21d0c1cfc40229a64659b15c4f0473462ec200b5
This commit is contained in:
Wes Hayutin 2019-02-11 15:29:31 -07:00
parent b039c85e45
commit ffa9341b07
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,8 @@
# possible bug in ansible, f29 python 3 env fails
# w/o both python-libselinux packages installed
# https://bugs.launchpad.net/tripleo/+bug/1812324
dnf-utils [platform:fedora]
yum-utils [platform:centos]
gcc [platform:rpm]
git [platform:rpm]
iproute [platform:rpm]

View File

@ -199,6 +199,12 @@ install_package_deps_via_bindep(){
sudo -n true && passwordless_sudo="1" || passwordless_sudo="0"
if [ "$passwordless_sudo" == "1" ] || [ "$USER_OVERRIDE_SUDO_CHECK" == "1" ]; then
bindep -b -f bindep.txt || sudo $(package_manager) -y install `bindep -b -f bindep.txt`;
# EPEL will NOT be installed on any nodepool nodes.
# EPEL could be installed in the same transaction as other packages on CentOS/RHEL
# This can leave the system with an older ansible version. Ansible 2.7+ required
# Run through the deps and update them
yum-config-manager enable epel || true
sudo $(package_manager) -y update `bindep -b -l newline -f bindep.txt`
else
print_sudo_warning
fi