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:
Major Hayden 2018-02-08 11:48:18 -06:00
parent 8a42facf6b
commit dfb3d59dfb
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
1 changed files with 14 additions and 0 deletions

View File

@ -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=[]) }}"