Use temporary repository for MariaDB 10.4.14 for Ubuntu focal

Upstream MariaDB do not provide packages for 10.4 until 10.4.13.
That version suffers from a critical bug which causes the database
to segfault during the openstack database creation. This will be
fixed in 10.4.14 but that version is not due for release until July
2020.

This patch uses a repo providing a version of daily build of 10.4.14
compiled for Ubuntu Focal in order to progress development of OSA on Focal.

Change-Id: Id584f5c770b35f2e78301edd55eeb0f0129363d6
(cherry picked from commit c49b69dc5e)
This commit is contained in:
Jonathan Rosser 2020-06-06 08:43:16 +01:00
parent 32192de0ce
commit 5a19d46692
1 changed files with 87 additions and 0 deletions

87
vars/ubuntu-20.04.yml Normal file
View File

@ -0,0 +1,87 @@
---
# Copyright 2016, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
## APT Cache Options
cache_timeout: 600
# Default private device setting
_galera_disable_privatedevices: yes
# Galera GPG Keys
_galera_gpg_keys:
- url: http://repo.vexxhost.net/mariadb/key.gpg
galera_server_required_distro_packages:
- apt-transport-https
- debconf-utils
- libaio1
- libc6
- libgcc1
- libgcrypt20
- libstdc++6
- python3-pymysql # needed by mysql_user
- software-properties-common
- xinetd
galera_etc_conf_file: "/etc/mysql/my.cnf"
galera_etc_include_dir: "/etc/mysql/conf.d"
galera_var_run_socket: "/var/run/mysqld/mysqld.sock"
# The package name for mariaDB is set as a variable
# so that it can be used in debconf later in the
# "galera_common" role.
_galera_mariadb_server_package: "mariadb-server-{{ galera_major_version }}"
# NB This is specifically galera_server_mariadb_distro_packages as these
# packages only get installed during the galera play - this is because of
# the preseed task and the service startup control used when installing
# mariadb-galera-server and galera.
galera_server_mariadb_distro_packages:
- libmariadb-dev
- mariadb-client
- mariadb-backup
- "{{ galera_mariadb_server_package }}"
- galera-4
- rsync
- socat
# The packages to uninstall during an upgrade from a previous version
galera_server_upgrade_packages_remove:
- mariadb-server
- mysql-common
galera_debconf_items:
- question: "mysql-server/root_password"
name: "{{ galera_mariadb_server_package }}"
value: "{{ galera_root_password }}"
vtype: "string"
- question: "mysql-server/root_password_again"
name: "{{ galera_mariadb_server_package }}"
value: "{{ galera_root_password }}"
vtype: "string"
# Repositories
_galera_repo_url: "http://repo.vexxhost.net/mariadb"
_galera_repo:
repo: "deb {{ galera_repo_url }} {{ ansible_distribution_release }} main"
state: "present"
filename: "MariaDB"
galera_wsrep_provider: "/usr/lib/galera/libgalera_smm.so"
galera_client_distro_packages:
- "mariadb-client-{{ galera_major_version }}"
galera_unix_socket: "/var/run/mysqld/mysqld.sock"