The change adds a task to ensure that the system provided xtrabackup package is removed before installing the downloaded version using the deb. This is required to ensure that there are no version conflicts when installing the package. The change also corrects the version of the galera server repo in the defaults directory. While the repo correct version of mariadb is being installed the name of the assumed repo is wrong. Closes-Bug: #1513459 Change-Id: I63cb546cf5a4386320f01ed6f2120dd7c8341335 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
150 lines
4.9 KiB
YAML
150 lines
4.9 KiB
YAML
---
|
|
# Copyright 2014, 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_server_bootstrap_node: "{{ groups['galera_all'][0] }}"
|
|
galera_ignore_cluster_state: false
|
|
|
|
galera_lb_address: 127.0.0.1
|
|
|
|
galera_cluster_name: openstack_galera_cluster
|
|
|
|
# The galera server-id should be set on all cluster nodes to ensure
|
|
# that replication is handled correctly and the error
|
|
# "Warning: You should set server-id to a non-0 value if master_host is
|
|
# set; we will force server id to 2, but this MySQL server will not act
|
|
# as a slave." is no longer present.
|
|
# galera_server_id: 0
|
|
|
|
galera_existing_cluster: true
|
|
galera_running_and_bootstrapped: false
|
|
|
|
galera_monitoring_user: monitoring
|
|
galera_monitoring_user_password: ""
|
|
galera_root_user: root
|
|
|
|
# WARNING: This option is deprecated and will be removed in v12.0
|
|
galera_gcache_size: 1024M
|
|
|
|
galera_max_heap_table_size: 32M
|
|
galera_tmp_table_size: 32M
|
|
|
|
galera_file_limits: 65535
|
|
galera_wait_timeout: 28800
|
|
|
|
## innodb options
|
|
galera_innodb_buffer_pool_size: 4096M
|
|
galera_innodb_additional_mem_pool_size: 24M
|
|
galera_innodb_log_file_size: 1024M
|
|
galera_innodb_log_buffer_size: 128M
|
|
|
|
## wsrep configuration
|
|
galera_wsrep_address: "127.0.0.1"
|
|
galera_wsrep_cluster_address: "{{ galera_wsrep_address }}"
|
|
galera_wsrep_node_incoming_address: "{{ galera_wsrep_address }}"
|
|
galera_wsrep_slave_threads: "{{ ansible_processor_vcpus }}"
|
|
galera_wsrep_retry_autocommit: 3
|
|
galera_wsrep_debug: 0
|
|
galera_wsrep_sst_method: xtrabackup-v2
|
|
galera_wsrep_provider_options:
|
|
- { option: "gcache.size", value: "{{ galera_gcache_size }}" }
|
|
galera_wsrep_sst_auth_user: "root"
|
|
galera_wsrep_sst_auth_password: "{{ galera_root_password }}"
|
|
|
|
# xtrabackup parallel/compression/sync threads
|
|
galera_xtrabackup_threads: 4
|
|
|
|
# Galera GPG Keys
|
|
galera_gpg_keys:
|
|
- key_name: 'mariadb'
|
|
keyserver: 'hkp://keyserver.ubuntu.com:80'
|
|
fallback_keyserver: 'hkp://p80.pool.sks-keyservers.net:80'
|
|
hash_id: '0xcbcb082a1bb943db'
|
|
- key_name: 'percona-xtrabackup'
|
|
keyserver: 'hkp://keyserver.ubuntu.com:80'
|
|
fallback_keyserver: 'hkp://p80.pool.sks-keyservers.net:80'
|
|
hash_id: '0x1c4cbdcdcd2efd2a'
|
|
|
|
# Repositories
|
|
galera_apt_repo_url: "https://mirror.rackspace.com/mariadb/repo/10.0/ubuntu"
|
|
galera_apt_repo:
|
|
repo: "deb {{ galera_apt_repo_url }} {{ ansible_distribution_release }} main"
|
|
state: "present"
|
|
|
|
galera_apt_percona_xtrabackup_url: "https://repo.percona.com/apt"
|
|
galera_apt_percona_xtrabackup_repo:
|
|
repo: "deb {{ galera_apt_percona_xtrabackup_url }} {{ ansible_distribution_release }} main"
|
|
state: "present"
|
|
|
|
galera_package_url: "https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.2.13/binary/debian/trusty/x86_64/percona-xtrabackup-22_2.2.13-1.trusty_amd64.deb"
|
|
galera_package_sha256: "2f58eedefa905583f0650f77bb2b149139c4066c7fb690202124fe5c7ac83e9e"
|
|
galera_package_path: "/opt/{{ galera_package_url | basename }}"
|
|
|
|
galera_pip_packages:
|
|
- MySQL-python
|
|
- python-memcached
|
|
- pycrypto
|
|
|
|
galera_pre_apt_packages:
|
|
- debconf-utils
|
|
- libaio1
|
|
- libc6
|
|
- libdbd-mysql-perl
|
|
- libgcc1
|
|
- libgcrypt11
|
|
- libstdc++6
|
|
- python-software-properties
|
|
- software-properties-common
|
|
|
|
# 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-galera-server-10.0"
|
|
|
|
# NB This is specifically galera_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_apt_packages:
|
|
- mariadb-client
|
|
- "{{ galera_mariadb_server_package }}"
|
|
- galera-3
|
|
- qpress
|
|
- rsync
|
|
- socat
|
|
|
|
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"
|
|
|
|
# Galera slow/unindexed query logging
|
|
galera_slow_query_logging: 0
|
|
galera_unindexed_query_logging: 0
|
|
|
|
## Tunable overrides
|
|
galera_my_cnf_overrides: {}
|
|
galera_cluster_cnf_overrides: {}
|
|
galera_debian_cnf_overrides: {}
|
|
|
|
# Set the max connections value for galera. Set this value to override the
|
|
# computed value which is (100 x vCPUs). If computed, the lowest value throughout
|
|
# the cluster will be used which is something to note if deploying galera on different
|
|
# hardware.
|
|
# galera_max_connections: 500
|