https://github.com/redhat-openstack/puppet-galera
Puppet module for Galera
https://github.com/redhat-openstack/puppet-galera
Last synced: 8 months ago
JSON representation
Puppet module for Galera
- Host: GitHub
- URL: https://github.com/redhat-openstack/puppet-galera
- Owner: redhat-openstack
- License: apache-2.0
- Created: 2014-11-21T17:43:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T22:19:31.000Z (about 6 years ago)
- Last Synced: 2025-04-06T02:04:35.203Z (10 months ago)
- Language: Puppet
- Size: 241 KB
- Stars: 2
- Watchers: 20
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Galera module
This is a module for installing and confiuring galera.
It depends on the mysql module from puppetlabs as well as xinetd.
## Usage
### galera::server
Used to configure a MariaDB Galera server cluster.
class { 'galera::server':
wsrep_cluster_name => 'galera_cluster',
wsrep_sst_method => 'rsync'
wsrep_sst_username => 'ChangeMe',
wsrep_sst_password => 'ChangeMe',
}
### galera::monitor
Used to monitor a MariaDB Galera cluster server. The class is meant
to be used in a server load-balancer environment.
class {'galera::monitor':
monitor_username => 'mon_user',
monitor_password => 'mon_pass'
}
Here is a sample 3-node HAProxy Configuration:
listen galera 192.168.220.40:3306
balance leastconn
mode tcp
option tcpka
option httpchk
server control01 192.168.220.41:3306 check port 9200 inter 2000 rise 2 fall 5
server control02 192.168.220.42:3306 check port 9200 inter 2000 rise 2 fall 5
server control03 192.168.220.43:3306 check port 9200 inter 2000 rise 2 fall 5
## Authors
Daneyon Hansen, Ryan O'Hara