
Create a new variable called galera_cluster_members which is a list of the hosts that make up the galera cluster. Set the default value to groups['galera_all'] which is the group used by openstack-ansible to refer to the members of the cluster. Replace all other references to groups['galera_all'] with the new variable. This allows other consumers of this role to use their own group naming scheme. Add a new task to verify that current host is a member of galera_cluster_members. Add the var galera_client_drop_config_file=true to the role dependency galera_client, this is required because the default value for that var in the galera_client role is based on membership of the galera_all group. Modify the functional testing to override galera_cluster_members, this aims to prevent the return of any hard-coded role references. Change-Id: I59af07217114a001cbebaa95a651919d53c9ec21
36 lines
984 B
YAML
36 lines
984 B
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.
|
|
|
|
galaxy_info:
|
|
author: rcbops
|
|
description: Installation galera server
|
|
company: Rackspace
|
|
license: Apache2
|
|
min_ansible_version: 1.6.6
|
|
platforms:
|
|
- name: Ubuntu
|
|
versions:
|
|
- trusty
|
|
categories:
|
|
- cloud
|
|
- galera
|
|
- mariadb
|
|
- development
|
|
- openstack
|
|
dependencies:
|
|
- apt_package_pinning
|
|
- role: galera_client
|
|
galera_client_drop_config_file: true
|