
Percona has started signing their Ubuntu packages with a new key. Update the galera_gpg_keys var to add it to the keyring. https://www.percona.com/blog/2016/10/13/new-signing-key-for-percona-debian-and-ubuntu-packages/ To resolve a reno dependency required to pass gate testing, also include the libjpeg-dev package in bindep requirements. Also, due to an expired certificate being used for https://yum.mariadb.org the GPG key is set to be fetched via http. Related-Bug: #388205 Change-Id: I1dc3a78b8e0b759cc98f3de2bd33774db3b477da
114 lines
4.5 KiB
YAML
114 lines
4.5 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.
|
|
|
|
## APT Cache Options
|
|
cache_timeout: 600
|
|
|
|
galera_server_distro_package_pins: [{ package: "*", release: MariaDB, priority: "1001" }]
|
|
|
|
# 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: '0xF1656F24C74CD1D8'
|
|
- key_name: 'percona-xtrabackup'
|
|
keyserver: 'hkp://keyserver.ubuntu.com:80'
|
|
fallback_keyserver: 'hkp://p80.pool.sks-keyservers.net:80'
|
|
hash_id: '0x9334a25f8507efa5'
|
|
|
|
galera_server_required_distro_packages:
|
|
- apt-transport-https
|
|
- debconf-utils
|
|
- libaio1
|
|
- libc6
|
|
- libdbd-mysql-perl
|
|
- libgcc1
|
|
- libgcrypt20
|
|
- 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_apt_server_package: "mariadb-galera-server-10.0"
|
|
|
|
# NB This is specifically galera_server_mariadb_distro_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_server_mariadb_distro_packages:
|
|
- mariadb-client
|
|
- "{{ galera_mariadb_apt_server_package }}"
|
|
- galera-3
|
|
- rsync
|
|
- socat
|
|
|
|
galera_debconf_items:
|
|
- question: "mysql-server/root_password"
|
|
name: "{{ galera_mariadb_apt_server_package }}"
|
|
value: "{{ galera_root_password }}"
|
|
vtype: "string"
|
|
- question: "mysql-server/root_password_again"
|
|
name: "{{ galera_mariadb_apt_server_package }}"
|
|
value: "{{ galera_root_password }}"
|
|
vtype: "string"
|
|
|
|
galera_server_percona_distro_packages:
|
|
- qpress
|
|
- percona-xtrabackup
|
|
|
|
# Validate SSL certificates when downloading the galera deb above
|
|
# May be set to "no" when proxy server is intercepting the certificates.
|
|
percona_package_download_validate_certs: yes
|
|
percona_package_url: "{{ percona_arch_url.get( hostvars[physical_host | default(inventory_hostname)]['ansible_architecture'] | lower ) }}"
|
|
percona_package_sha256: "{{ percona_arch_sha256.get( hostvars[physical_host | default(inventory_hostname)]['ansible_architecture'] | lower ) }}"
|
|
percona_package_path: "/opt/{{ percona_package_url | basename }}"
|
|
|
|
percona_arch_url:
|
|
x86_64: "https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.2.13/binary/debian/vivid/x86_64/percona-xtrabackup-22_2.2.13-1.vivid_amd64.deb"
|
|
ppc64le: "http://public.dhe.ibm.com/systems/virtualization/Novalink/misc/percona-xtrabackup/percona-xtrabackup-22_2.2.13-1_ppc64el.deb"
|
|
percona_arch_sha256:
|
|
x86_64: "3e3b15b2b261da004f7c4419ae427af9ec5707b40be1effe22a0142311c51856"
|
|
ppc64le: "902969b427a36743f5af1e399ff19b3904c3803d760700f959c8cc9102ab802c"
|
|
|
|
qpress_package_download_validate_certs: yes
|
|
qpress_package_url: "{{ qpress_arch_url.get( hostvars[physical_host | default(inventory_hostname)]['ansible_architecture'] | lower ) }}"
|
|
qpress_package_sha256: "{{ qpress_arch_sha256.get( hostvars[physical_host | default(inventory_hostname)]['ansible_architecture'] | lower ) }}"
|
|
qpress_package_path: "/opt/{{ qpress_package_url | basename }}"
|
|
|
|
qpress_arch_url:
|
|
x86_64: "https://repo.percona.com/apt/pool/main/q/qpress/qpress_11-1.xenial_amd64.deb"
|
|
ppc64le: "http://public.dhe.ibm.com/systems/virtualization/Novalink/misc/qpress/qpress_11-1_ppc64el.deb"
|
|
qpress_arch_sha256:
|
|
x86_64: "c615ec08eb38a9cb59541ae1d7ed42db35e92513735834b48d30d4c485e01534"
|
|
ppc64le: "a31d3e00dbcec9b3f98eae82b261d054d0b80a57f4a38967d0e953811cb082f3"
|
|
|
|
# Repositories
|
|
# TODO: update this to xenial if the repo ever gets created.
|
|
galera_percona_xtrabackup_repo_url: "http://repo.percona.com/apt"
|
|
galera_percona_xtrabackup_repo:
|
|
repo: "deb {{ galera_percona_xtrabackup_repo_url }} {{ ansible_distribution_release }} main"
|
|
state: "present"
|
|
|
|
galera_apt_repo_url: "http://mirror.rackspace.com/mariadb/repo/10.0/ubuntu"
|
|
galera_repo:
|
|
repo: "deb {{ galera_apt_repo_url }} {{ ansible_distribution_release }} main"
|
|
state: "present"
|
|
|
|
use_percona_upstream: no
|
|
using_mysql_init: yes
|