openstack-ansible/playbooks/inventory/group_vars/galera.yml

40 lines
1.2 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.
service_name: mysql
# Defaults to mysql_address (VIP) when unset.
# Should only be set for the galera group so that they always connect to
# their own instance.
mysql_client_host: 127.0.0.1
container_lvm_fstype: ext4
container_lvm_fssize: 5GB
# Size of the galera cache
galera_gcache_size: 1G
# Connection timeout https://mariadb.com/kb/en/mariadb/documentation/optimization-and-tuning/system-variables/server-system-variables/#wait_timeout
galera_wait_timeout: 28800
service_pip_dependencies:
- MySQL-python
- python-memcached
- pycrypto
# Directories to create
container_directories:
- { name: '/var/log/mysql', mode: 755 }