91 lines
2.9 KiB
YAML
91 lines
2.9 KiB
YAML
---
|
|
# Copyright 2017, SUSE LINUX GmbH.
|
|
#
|
|
# 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:
|
|
- name: mariadb
|
|
key: /etc/pki/RPM-GPG-KEY-MariaDB
|
|
keyfile: 'gpg/1BB943DB'
|
|
|
|
# Default private device setting
|
|
_galera_disable_privatedevices: yes
|
|
|
|
galera_server_required_distro_packages:
|
|
- galera
|
|
- gpg2
|
|
- libaio-devel
|
|
- libstdc++-devel
|
|
- libgcrypt-devel
|
|
- MariaDB-client
|
|
- MariaDB-devel
|
|
- python-MySQL-python # needed by mysql_user
|
|
- xinetd
|
|
|
|
galera_etc_conf_file: "/etc/mysql/my.cnf"
|
|
galera_etc_include_dir: "/etc/mysql/conf.d"
|
|
galera_var_run_socket: "/var/lib/mysql/mysql.sock"
|
|
|
|
_galera_mariadb_server_package: "MariaDB-server"
|
|
|
|
galera_server_mariadb_distro_packages:
|
|
- which
|
|
- "{{ galera_mariadb_server_package }}"
|
|
- MariaDB-shared
|
|
- rsync
|
|
- socat
|
|
|
|
# Conflicting packages with those from the MariaDB repository
|
|
galera_server_mariadb_distro_packages_remove:
|
|
- libmariadb-devel
|
|
- mariadb
|
|
- mariadb-client
|
|
- mariadb-tools
|
|
|
|
# The packages to uninstall during an upgrade from a previous version
|
|
galera_server_upgrade_packages_remove:
|
|
- MariaDB-Galera-server
|
|
- MariaDB-server
|
|
|
|
galera_mariadb_service_name: "mariadb"
|
|
|
|
_galera_opensuse_dir: "{{ (ansible_distribution_major_version == '15') | ternary(ansible_distribution_version | regex_replace('\\.', ''), ansible_distribution_major_version) }}"
|
|
_galera_repo_url: "http://{{ galera_repo_host }}/MariaDB/mariadb-{{ galera_major_version }}.{{ galera_minor_version }}/yum/opensuse{{ _galera_opensuse_dir }}-amd64"
|
|
_galera_repo:
|
|
name: MariaDB
|
|
description: "MariaDB Repo"
|
|
baseurl: "{{ galera_repo_url }}"
|
|
|
|
# NOTE(hwoarang): Extra repository is only needed for 42.3. If this starts failig due to network issues we should
|
|
# simply pin 10.1.31 to Leap 42.3
|
|
_galera_percona_xtrabackup_repo:
|
|
name: "OBS:home:markoschandras:osa"
|
|
description: "OBS OpenStack Ansible repository"
|
|
repo: "https://download.opensuse.org/repositories/home:/markoschandras:/osa/openSUSE_Leap_{{ ansible_distribution_version }}"
|
|
state: "{{ (ansible_distribution_major_version == '42') | ternary('present', 'absent') }}"
|
|
|
|
galera_server_percona_distro_packages:
|
|
- percona-toolkit
|
|
- percona-xtrabackup
|
|
- "{{ (galera_xtrabackup_compression | bool) | ternary('qpress', '') }}"
|
|
|
|
galera_wsrep_provider: "/usr/lib64/galera/libgalera_smm.so"
|
|
|
|
mariadb_delete_etc_conf_files:
|
|
- default_plugins.cnf
|
|
- galera.cnf
|
|
- error_log.cnf
|
|
|
|
_use_percona_upstream: no
|