openstack-ansible/playbooks/roles/galera_server
Darren Birkett 9ae6eeca8b set unique galera server-id
Each slave in a mysql replication cluster needs to have a unique
'server-id' set. This is an arbitrary integer, and often people select
1,2,3 etc. For easy deterministic uniqueness without needing to look at
what you've already used, a simple filter has been created to allow for
the hostname to be converted into an integer.

The server ID variable has been added to the my.cnf.j2 template
and the galera_server defaults/main.yml file. The generation of the
server-id variable happens within the `galera-install.yml` play making
it so there is no future impact in role requires.

Change-Id: Id15149e59cb03ab268bb3b7eeaf391334dfc0c01
Fixes-Bug: #1479484
2015-10-02 18:01:58 +00:00
..
defaults set unique galera server-id 2015-10-02 18:01:58 +00:00
files Updated MariaDB to the new release version (10.0) 2015-09-29 17:21:15 -05:00
handlers Updated MariaDB to the new release version (10.0) 2015-09-29 17:21:15 -05:00
library Updated MariaDB to the new release version (10.0) 2015-09-29 17:21:15 -05:00
meta added role to pin packages 2015-05-08 13:22:42 -05:00
tasks Merge "Allow pip extra arguments to be passed to playbooks" 2015-10-01 01:27:43 +00:00
templates set unique galera server-id 2015-10-02 18:01:58 +00:00
CONTRIBUTING.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00

README.rst

OpenStack Galera Server

tags

openstack, galera, server, cloud, ansible

category

*nix

Role for the installation and installation of 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_wsrep_address: "10.0.0.1,10.0.0.2,10.0.0.3"
    galera_wsrep_node_name: "{{ ansible_hostname }}"
    galera_wsrep_cluster_address: "{{ container_address }}"
    galera_address: "{{ container_address }}"
    galera_root_password: secrete
    galera_root_user: root