Set proper yum repo priority on CentOS 7
This patch ensures that we get galera from the MariaDB repos and not from RDO. Change-Id: I2c8e4e64c2425cd36903ae9288bd9fee29eef355
This commit is contained in:
parent
8a42facf6b
commit
dfb3d59dfb
|
@ -86,6 +86,20 @@
|
|||
delay: 2
|
||||
when: use_percona_upstream | bool
|
||||
|
||||
# NOTE(mhayden): MariaDB/percona repositories are prioritized at 99 by default
|
||||
# and that allows yum to install galera from the RDO repos, which is not good.
|
||||
# This task ensures that the following task will choose MariaDB/percona repos
|
||||
# as the highest priority.
|
||||
- name: Ensure MariaDB/percona repositories take highest priority
|
||||
command: |
|
||||
yum-config-manager
|
||||
--enable {{ item }}
|
||||
--setopt="{{ item }}.priority=25"
|
||||
with_items:
|
||||
- MariaDB
|
||||
- percona-release-noarch
|
||||
- percona-release-x86_64
|
||||
|
||||
- name: Install galera_server role remote packages
|
||||
package:
|
||||
name: "{{ galera_install_packages_list | selectattr('enabled') | sum(attribute='packages', start=[]) }}"
|
||||
|
|
Loading…
Reference in New Issue