
* We were installing mariadb/galera as part of the galera play to ensure we could control the startup and preseed. * This changes the play back to do this properly, instead of installing it as part of the "common" play. * This leaves the packages to be installed in the common repo_packages file Fixes-Bug: #222
53 lines
1.7 KiB
YAML
53 lines
1.7 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.
|
|
|
|
repo_package_name: galera
|
|
|
|
# The package name for mariaDB is set as a variable
|
|
# so that it can be used in debconf later in the
|
|
# "galera_common" role.
|
|
mariadb_server_package: "mariadb-galera-server-5.5"
|
|
|
|
# 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_packages:
|
|
- mariadb-client
|
|
- "{{ mariadb_server_package }}"
|
|
- galera
|
|
- python-software-properties
|
|
- software-properties-common
|
|
- debconf-utils
|
|
- rsync
|
|
- xtrabackup
|
|
|
|
service_pip_dependencies:
|
|
- MySQL-python
|
|
|
|
# When installing container packages this bol will drop a
|
|
# run level policy to ensure that no services are started
|
|
# upon installation.
|
|
run_policy_deny: true
|
|
|
|
debconf_items:
|
|
- question: "mysql-server/root_password"
|
|
name: "{{ mariadb_server_package }}"
|
|
value: "{{ mysql_password }}"
|
|
vtype: "string"
|
|
- question: "mysql-server/root_password_again"
|
|
name: "{{ mariadb_server_package }}"
|
|
value: "{{ mysql_password }}"
|
|
vtype: "string"
|