/home/zuul/src/opendev.org/openstack/openstack-ansible-galera_client/defaults/main.yml
---
# 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_cluster_members: "{{ groups['galera_all'] }}"

# Default galera connection address
galera_address: 127.0.0.1
galera_root_user: root

# Set the URL for the MariaDB repository
galera_repo_host: downloads.mariadb.com
galera_client_repo_url: "{{ galera_repo_url | default(_galera_client_repo_url) }}"

# Set the major version to use for the galera repo
galera_client_major_version: 10.3
galera_client_minor_version: 18

# Set the repo information for the MariaDB repository
galera_client_repo: "{{ _galera_client_repo }}"

# Set the gpg keys needed to be imported
# This should be a list of dicts, with each dict
# giving a set of arguments to the applicable
# package module. The following is an example for
# systems using the apt package manager.
# galera_client_gpg_keys:
#   - id: '0xF1656F24C74CD1D8'
#     keyserver: 'hkp://keyserver.ubuntu.com:80'
#     validate_certs: no
galera_client_gpg_keys: "{{ _galera_client_gpg_keys | default([]) }}"

# This is only applied if the ansible_pkg_mgr is 'apt'
galera_client_distro_package_pins: [{ package: "*", release: MariaDB, priority: "1001" }]

## APT Cache Options
cache_timeout: 600

# Set the package install state for distribution packages
# Options are 'present' and 'latest'
galera_client_package_state: "latest"

galera_client_drop_config_file: false
galera_client_package_install: true

galera_client_fatal_deprecations: false

## Tunable overrides
galera_client_my_cnf_overrides: {}

mariadb_repo_filename: "MariaDB"

# SSL support
galera_use_ssl: false
# This server is used when pulling an ssl cert onto a given host when a user
# defined key is not present. By default this will try and pull from the
# "galera_server" group and fall back to localhost.
galera_ssl_server: "{{ (galera_cluster_members | default(['localhost']))[0] }}"
# The path where to store the database server CA certificate
galera_ssl_ca_cert: /etc/ssl/certs/galera-ca.pem
# The path to Galera CA certificate file on the deployment host
# galera_user_ssl_ca_cert: /etc/openstack_deploy/self_signed_certs/galera-ca.pem