Add update step after enabling OpenStack repos

In specific cases, there may be conflicts between packages
provided by Centos and RDO repos. In that case RDO repos
should be used. To avoid any of these issues, this patch
updates packages right after enabling the repos.

Change-Id: Ide3265c5dc84971f19da2b5af049693cff5442b4
This commit is contained in:
Alfredo Moralejo 2016-11-25 18:27:47 +01:00
parent d513e48478
commit dc8c6f1c90

View File

@ -149,6 +149,14 @@ if [ "${MANAGE_REPOS}" = true ]; then
print_header 'Puppet failed to install repositories.'
exit 1
fi
if is_fedora; then
print_header 'Updating packages'
$SUDO yum update -y
if [ $? -ne 0 ]; then
print_header 'Error updating packages'
exit 1
fi
fi
fi
print_header "Running Puppet Scenario: ${SCENARIO} (1st time)"