Role galera_server for OpenStack-Ansible
Go to file
Jesse Pretorius a9627447c0 Allow a single-node MariaDB cluster to restart properly
With the implementation of https://review.openstack.org/382683 a single
MariaDB node has no peers configured, so there's no need to bootstrap
the cluster on restart.

This patch removes the condition in the handler which previously was
needed to handle the re-bootstrap during a single node cluster service
restart.

Closes-Bug: #1595143
Closes-Bug: #1639900
Related-Bug: #1624327
Change-Id: I599bbf0efa4e3d5abdf6d95c95d7983c464b3ae5
(cherry picked from commit cc58790ebe)
2016-11-16 15:00:44 +00:00
defaults On single nodes use an empty cluster address 2016-11-07 19:27:09 +02:00
doc Doc and configuration for independent repository 2016-03-03 11:56:23 -05:00
files first commit 2015-12-09 09:23:50 -06:00
handlers Allow a single-node MariaDB cluster to restart properly 2016-11-16 15:00:44 +00:00
library Prevent galera_cluster_name from changing. 2016-09-14 13:49:12 +00:00
meta Updated role using the Multi-Distro framework 2016-03-21 22:57:11 -05:00
releasenotes Prevent galera_cluster_name from changing. 2016-09-14 13:49:12 +00:00
tasks Prevent galera_cluster_name from changing. 2016-09-14 13:49:12 +00:00
templates remove compact option from xtrabackup 2016-08-16 09:38:30 +00:00
tests Reorganize test playbooks 2016-06-18 09:56:11 -07:00
vars Updated role using the Multi-Distro framework 2016-03-21 22:57:11 -05:00
.gitignore Add reno scaffolding for release notes management 2016-04-15 17:09:21 +00:00
.gitreview Update .gitreview for stable/mitaka 2016-04-08 16:14:10 +00:00
CONTRIBUTING.rst Doc and configuration for independent repository 2016-03-03 11:56:23 -05:00
LICENSE first commit 2015-12-09 09:23:50 -06:00
README.rst Doc and configuration for independent repository 2016-03-03 11:56:23 -05:00
other-requirements.txt Add dependencies for paramiko 2.0 2016-05-03 13:56:32 +00:00
run_tests.sh Add dependencies for paramiko 2.0 2016-05-03 13:56:32 +00:00
setup.cfg Doc and configuration for independent repository 2016-03-03 11:56:23 -05:00
setup.py first commit 2015-12-09 09:23:50 -06:00
test-requirements.txt Update tox configuration 2016-07-08 17:09:18 +01:00
tox.ini Update tox configuration 2016-07-08 17:09:18 +01:00

README.rst

OpenStack-Ansible Galera Server

tags

openstack, galera, server, cloud, ansible

category

*nix

Ansible role to install and configure a Galera cluster powered by MariaDB

- name: Install galera server
  hosts: galera_all
  user: root
  roles:
    - { role: "galera_server", tags: [ "galera-server" ] }
  vars:
    container_address: "{{ ansible_ssh_host }}"
    galera_root_password: secrete
    galera_root_user: root