Add Centos-8 support

Change-Id: Ic59c26c51b5ea9a49c7721a1aa7641203950bc97
(cherry picked from commit f678c329ce)
This commit is contained in:
Marc Gariepy
2020-04-30 13:49:47 -04:00
committed by Jonathan Rosser
parent 32192de0ce
commit 6b8e8c99df
2 changed files with 10 additions and 2 deletions

View File

@@ -117,6 +117,14 @@
retries: 5
delay: 2
- name: Enable module_hotfixes
lineinfile:
dest: "/etc/yum.repos.d/{{ galera_repo.name }}.repo"
line: "module_hotfixes=1"
regexp: "^module_hotfixes"
insertafter: "^enabled"
when: ansible_distribution_major_version is version('8', '>=')
# When changing the repo URL, the metadata does
# not reliably update, resulting in the right
# URL being used, but the wrong package list.

View File

@@ -32,7 +32,7 @@ galera_server_required_distro_packages:
- libgcrypt
- MariaDB-client
- MariaDB-devel
- MySQL-python # needed by mysql_user
- "{{ ansible_distribution_major_version is version('8', '<') | ternary('MySQL-python', 'python3-PyMySQL') }}" # needed by mysql_user
- xinetd
galera_etc_conf_file: "/etc/mysql/my.cnf"
@@ -60,7 +60,7 @@ galera_server_upgrade_packages_remove:
- MariaDB-Galera-server
- MariaDB-server
_galera_repo_url: "http://{{ galera_repo_host }}/MariaDB/mariadb-{{ galera_major_version }}.{{ galera_minor_version }}/yum/{{ ansible_distribution | lower }}{{ ansible_distribution_major_version }}-amd64/"
_galera_repo_url: "http://{{ galera_repo_host }}/MariaDB/mariadb-{{ galera_major_version }}.{{ galera_minor_version }}/yum/rhel/$releasever/$basearch"
_galera_repo:
name: MariaDB
description: "MariaDB Repo"