kornkalle.ansible_mariadb_galera_cluster

ansible-mariadb-galera-cluster

An Ansible role to install/configure a MariaDB-Galera Cluster. Forked from https://github.com/mrlesmithjr/ansible-mariadb-galera-cluster.

This Role will install and configure a mariadb-cluster with all nodes in the group "galera-cluster" (The group name is overwritable).

Requirements

  • Ansible >= 2.7
  • python3-libselinux for CentOS / RHEL

Role Variables

You will most likely need to override the interface on which MariaDB will listen on, as this name depends on your virtualization / hardware platform:

galera_cluster_bind_interface: "enp0s8"

The mariadb_bind_address will be calculated from the address of the interface you defined at the galera_cluster_bind_interface variable. You can also directly set a bind address when overriding the variable mariadb_bind_address:

mariadb_bind_address: 0.0.0.0

All Role variables are found at defaults/main.yml, you can override all of them, the default values will work in a clean environment.

Example Playbook

Example playbook

License

MIT

Author Information

Nils Berg

  • nils.berg [at] helmholtz-berlin.de
  • n.berg [at] backslashseven.de
About

An Ansible role to install/configure a MariaDB-Galera Cluster, based on role from Larry Smith Jr.

Install
ansible-galaxy install kornkalle.ansible_mariadb_galera_cluster
GitHub repository
License
mit
Downloads
91
Owner
Currently employed at Helmholtz-Zentrum Berlin and self-employed. Working with Ansible, Database Clusters and Kubernetes.