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:
parent
b039c85e45
commit
ffa9341b07
@ -1,7 +1,8 @@
|
|||||||
# possible bug in ansible, f29 python 3 env fails
|
# possible bug in ansible, f29 python 3 env fails
|
||||||
# w/o both python-libselinux packages installed
|
# w/o both python-libselinux packages installed
|
||||||
# https://bugs.launchpad.net/tripleo/+bug/1812324
|
# https://bugs.launchpad.net/tripleo/+bug/1812324
|
||||||
|
dnf-utils [platform:fedora]
|
||||||
|
yum-utils [platform:centos]
|
||||||
gcc [platform:rpm]
|
gcc [platform:rpm]
|
||||||
git [platform:rpm]
|
git [platform:rpm]
|
||||||
iproute [platform:rpm]
|
iproute [platform:rpm]
|
||||||
|
@ -199,6 +199,12 @@ install_package_deps_via_bindep(){
|
|||||||
sudo -n true && passwordless_sudo="1" || passwordless_sudo="0"
|
sudo -n true && passwordless_sudo="1" || passwordless_sudo="0"
|
||||||
if [ "$passwordless_sudo" == "1" ] || [ "$USER_OVERRIDE_SUDO_CHECK" == "1" ]; then
|
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`;
|
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
|
else
|
||||||
print_sudo_warning
|
print_sudo_warning
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user