Install yum-plugin-priorities in pre-install phase
In some cases yum repositories are using priorities configuration to force OpenStack packages to be installed from the desired repository. To work properly, priorities configuration requires the package yum-plugin-priorities to be installed before doing the actual OpenStack packages installation. This patch adds yum-plugin-priorities in pre-install phase for overcloud-base element wich is always used when creating tripleo images. Change-Id: I9c9b50d35d411f85a4cbe33ffab4c71d40dfb0f1 Closes-Bug: #1740934 Closes-Bug: #1727985 (cherry picked from commitcc606ef527
) yum-plugin-priorities should not be enabled on RHEL Change-Id: Ic3721f0fbd35eb421d439e53ff8418293f83d4af (cherry picked from commit82d0a62d85
)
This commit is contained in:
parent
ac65f7f847
commit
a2422e5832
|
@ -6,6 +6,7 @@
|
|||
"python_docker_py": "python-docker-py",
|
||||
"python_ipaddr": "python-ipaddr",
|
||||
"openstack_selinux": "openstack-selinux",
|
||||
"net_snmp": "net-snmp"
|
||||
"net_snmp": "net-snmp",
|
||||
"yum_plugin_priorities_package": "yum-plugin-priorities"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
set -o xtrace
|
||||
|
||||
if [[ "centos7 fedora" =~ "$DISTRO_NAME" ]]; then
|
||||
install-packages -m overcloud-base yum_plugin_priorities_package
|
||||
fi
|
Loading…
Reference in New Issue