4a860f715c
Currently mysql is only (re)started when creating a cluster, adding a node or the service isn't running. This means changes to configuration files are not used. This commit moves the restart functionality to a handler and sets notifies on the the appropriate tasks so that when the config is changes mysql is restarted. This commit modifies the galera play to run in serial so that only one instance of mysql can be restarted at a time. This is to prevent the possibility of them all being restarted in one go. An additional play 'Check galera cluster status' has been added, this makes an attempt to check that the cluster is healthy before proceeding with any possible config changes. The checks can be overridden by setting 'galera_ignore_cluster_state=true' when running the playbook. A facts module has been added to gather information about the status of the cluster for use by the galera-install playbook. DocImpact Closes-bug: #1449958 Change-Id: Id83ba642c114d1f5cac04cc219be151a82a1023f
25 lines
817 B
YAML
25 lines
817 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.
|
|
|
|
- include: galera_pre_install.yml
|
|
- include: galera_install.yml
|
|
- include: galera_post_install.yml
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|
|
|
|
- include: galera_setup.yml
|
|
when: inventory_hostname == groups['galera_all'][0]
|