In https://review.openstack.org/535252 the installation process for the role was simplified, but an unintentional side-effect was to removed the previously included support for installing the extra percona packages when installing on the ppc64le platform. This patch re-introduces that ability, but scopes it to only execute on that hardware platform, and only for Ubuntu. The download is, by default, facilitated through the deploy node (rather than the target nodes) so that the download is done once, then pushed to the targets. This can be adjusted with the right parameters to download from the targets instead. Also, in https://review.openstack.org/543888 adjustments were made to disable compression/qpress on architectures other than x86_64, and to fail the role execution if it was enabled on any other architecture. This has been corrected to ensure that compression is enabled by default for ppc64le on Ubuntu, and enabled by default for x86_64, but disabled by default for all other combinations. The fail task is adjusted appropriately and moved to the main task file so that it executes and fails out before any changes are made. Change-Id: I850a37b465a427a827e357111942973457fafa0d
86 lines
2.7 KiB
YAML
86 lines
2.7 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:
|
|
- key_name: 'RPM-GPG-KEY-MariaDB'
|
|
keyserver: 'https://yum.mariadb.org'
|
|
fallback_keyserver: 'https://yum.mariadb.org'
|
|
|
|
# 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:
|
|
- gnupg2
|
|
- libaio
|
|
- libstdc++
|
|
- libgcc
|
|
- libgcrypt
|
|
- MariaDB-client
|
|
- MariaDB-devel
|
|
- 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:
|
|
- mariadb-common
|
|
- mariadb-config
|
|
- mariadb-server
|
|
- mariadb-libs
|
|
- percona-xtrabackup
|
|
|
|
# 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"
|
|
|
|
# TODO(evrardjp): Unfreeze version to 10.1 branch when clustering issue is solved.
|
|
_galera_repo_url: "http://downloads.mariadb.com/MariaDB/mariadb-{{ galera_major_version }}.{{ galera_minor_version }}/yum/centos7-amd64"
|
|
_galera_repo:
|
|
name: MariaDB
|
|
description: "MariaDB Repo"
|
|
baseurl: "{{ galera_repo_url }}"
|
|
gpgkey: "https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"
|
|
|
|
_galera_percona_xtrabackup_repo:
|
|
repo: "http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm"
|
|
state: "{{ (use_percona_upstream | bool) | ternary('present', 'absent') }}"
|
|
|
|
galera_server_percona_distro_packages:
|
|
- percona-toolkit
|
|
- percona-xtrabackup
|
|
- "{{ (galera_xtrabackup_compression | bool) | ternary('qpress', '') }}"
|
|
|
|
galera_wsrep_provider: "/usr/lib/galera/libgalera_smm.so"
|
|
|
|
_use_percona_upstream: "{{ ansible_architecture == 'x86_64' }}"
|