8bb346420d
The variables in vars are only loaded when the include_vars
task is run, which is after meta-dependencies are processed.
This patch ensures that the pinning is properly applied when
the meta-dependent role is executed.
Closes-Bug: #1712315
Change-Id: Ibc7766e96e478250b5e7d4788bb56dace974d25f
(cherry picked from commit c24d590d8a
)
100 lines
3.3 KiB
YAML
100 lines
3.3 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 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: '0x9334a25f8507efa5'
|
|
|
|
galera_server_required_distro_packages:
|
|
- apt-transport-https
|
|
- 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_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
|
|
|
|
# The packages to uninstall during an upgrade from a previous version
|
|
galera_server_upgrade_packages_remove:
|
|
- mariadb-galera-server
|
|
- mysql-common
|
|
|
|
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
|
|
|
|
percona_arch_url:
|
|
x86_64: "https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.3.5/binary/debian/trusty/x86_64/percona-xtrabackup_2.3.5-1.trusty_amd64.deb"
|
|
percona_arch_sha256:
|
|
x86_64: "7b407be253b922f8bb772d87877486c0ce8eef8af1304abec702dba962b497dd"
|
|
|
|
qpress_arch_url:
|
|
x86_64: "https://repo.percona.com/apt/pool/main/q/qpress/qpress_11-1.trusty_amd64.deb"
|
|
qpress_arch_sha256:
|
|
x86_64: "21e2f4466a1dffd6281d01d0b29388e2a2f0f9c6ba9538b128c34af61b2a4e12"
|
|
|
|
# Repositories
|
|
_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_repo_url: "{{ galera_apt_repo_url | default('http://mirror.rackspace.com/mariadb/repo/10.0/ubuntu') }}"
|
|
_galera_repo:
|
|
repo: "deb {{ galera_repo_url }} {{ ansible_distribution_release }} main"
|
|
state: "present"
|
|
|
|
_use_percona_upstream: no
|
|
using_mysql_init: no
|