Add Centos-8 support
Change-Id: Ic59c26c51b5ea9a49c7721a1aa7641203950bc97
This commit is contained in:
committed by
Dmitriy Rabotyagov (noonedeadpunk)
parent
36f35bee26
commit
f678c329ce
@@ -117,6 +117,14 @@
|
|||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
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
|
# When changing the repo URL, the metadata does
|
||||||
# not reliably update, resulting in the right
|
# not reliably update, resulting in the right
|
||||||
# URL being used, but the wrong package list.
|
# URL being used, but the wrong package list.
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ galera_server_required_distro_packages:
|
|||||||
- libgcrypt
|
- libgcrypt
|
||||||
- MariaDB-client
|
- MariaDB-client
|
||||||
- MariaDB-devel
|
- 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
|
- xinetd
|
||||||
|
|
||||||
galera_etc_conf_file: "/etc/mysql/my.cnf"
|
galera_etc_conf_file: "/etc/mysql/my.cnf"
|
||||||
@@ -60,7 +60,7 @@ galera_server_upgrade_packages_remove:
|
|||||||
- MariaDB-Galera-server
|
- MariaDB-Galera-server
|
||||||
- MariaDB-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:
|
_galera_repo:
|
||||||
name: MariaDB
|
name: MariaDB
|
||||||
description: "MariaDB Repo"
|
description: "MariaDB Repo"
|
||||||
|
|||||||
Reference in New Issue
Block a user