
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/939771 Change-Id: I5e11a0309c3ba4a35f4fafb5927799d7d7b449f0
93 lines
3.4 KiB
YAML
93 lines
3.4 KiB
YAML
---
|
|
# 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.
|
|
|
|
# Galera GPG Keys
|
|
_galera_gpg_keys:
|
|
# MariaDB Package Signing Key <package-signing-key@mariadb.org>
|
|
- key: /etc/pki/rpm-gpg/RPM-GPG-KEY-MariaDB
|
|
|
|
# Default private device setting
|
|
# This provides some additional security, but it causes problems with creating
|
|
# mount namespaces on CentOS 7 with systemd 219. Setting the following variable
|
|
# to 'yes' will disable the PrivateDevices
|
|
_galera_disable_privatedevices: yes
|
|
|
|
galera_server_required_distro_packages:
|
|
- findutils # "find" is used by wsrep_sst_mariabackup script
|
|
- gnupg2
|
|
- libaio
|
|
- libstdc++
|
|
- libgcc
|
|
- libgcrypt
|
|
- "{{ (galera_install_method == 'external_repo') | ternary('MariaDB-client', 'mariadb') }}"
|
|
- "{{ (galera_install_method == 'external_repo') | ternary('MariaDB-devel', 'mariadb-connector-c-devel') }}"
|
|
- python3-PyMySQL
|
|
|
|
galera_etc_conf_file: "/etc/mysql/my.cnf"
|
|
galera_etc_include_dir: "/etc/mysql/conf.d"
|
|
galera_var_run_socket: "{{ galera_data_dir }}/mysql.sock"
|
|
|
|
_galera_mariadb_external_repo_package: >-
|
|
MariaDB-server-{{ galera_major_version }}.{{ galera_minor_version }}-1.el{{ ansible_facts['distribution_major_version'] }}
|
|
|
|
_galera_architecture_mapping:
|
|
x86_64: x86_64
|
|
ppc64le: ppc64le
|
|
s390x: s390x
|
|
aarch64: aarch64
|
|
|
|
galera_server_mariadb_distro_packages:
|
|
- "{{ galera_mariadb_server_package }}"
|
|
- "{{ (galera_install_method == 'external_repo') | ternary('MariaDB-backup', 'mariadb-backup') }}"
|
|
- "{{ (galera_install_method == 'external_repo') | ternary('MariaDB-shared', 'galera') }}"
|
|
- procps-ng
|
|
- rsync
|
|
- socat
|
|
- which
|
|
|
|
# Conflicting packages with those from the MariaDB repository
|
|
galera_mariadb_distro_packages_remove:
|
|
- mariadb-common
|
|
- mariadb-config
|
|
- mariadb-server
|
|
|
|
# The packages to uninstall during an upgrade from a previous version
|
|
galera_server_upgrade_packages_remove:
|
|
- galera*
|
|
- MariaDB-Galera-server
|
|
- "{{ galera_mariadb_server_package }}"
|
|
|
|
_galera_repo_url: >-
|
|
https://{{ galera_repo_host }}/yum/{{ galera_major_version }}/rhel/$releasever/{{
|
|
galera_architecture_mapping[ansible_facts['architecture']] }}
|
|
|
|
_galera_repo:
|
|
name: MariaDB
|
|
description: "MariaDB Repo"
|
|
baseurl: "{{ galera_repo_url }}"
|
|
gpgkey: "file://{{ galera_gpg_keys | map(attribute='key') | join('file://') }}"
|
|
state: "{{ (galera_install_method == 'external_repo') | ternary('present', 'absent') }}"
|
|
|
|
# NOTE: CentOS Stream/Rocky 9 still ship mariadb 10.5 out of their default repos
|
|
galera_wsrep_provider: "/usr/lib64/{{ (galera_install_method == 'external_repo') | ternary('galera-4', 'galera') }}/libgalera_smm.so"
|
|
|
|
galera_client_distro_packages:
|
|
- "{{ (galera_install_method == 'external_repo') | ternary('MariaDB-client', 'mariadb') }}"
|
|
|
|
galera_devel_distro_packages:
|
|
- "{{ (galera_install_method == 'external_repo') | ternary('MariaDB-devel', 'mariadb-connector-c-devel') }}"
|
|
|
|
galera_unix_socket: "{{ galera_data_dir }}/mysql.sock"
|