fuel-library/deployment/puppet/galera
Maksim Malchuk bf841292bc Fix 'Array Expression has no effect' errors
This commit contains only fixes to proper support Puppet4.

Change-Id: Ib7482618180b2e7c22087962dd979e6a13d4afd7
Closes-Bug: #1535703
2016-01-19 15:56:15 +03:00
..
lib/facter Tune mysql and galera backend settings on scale 2014-03-19 14:36:03 +02:00
manifests Fix 'Array Expression has no effect' errors 2016-01-19 15:56:15 +03:00
spec Initial Percona cluster support added 2015-07-07 11:53:17 -05:00
templates Tweak MySQL logging configuration 2016-01-15 10:27:42 -08:00
.fixtures.yml Define galera gcache option 2015-07-16 13:14:31 +03:00
.gitignore Initial Percona cluster support added 2015-07-07 11:53:17 -05:00
.project cleaning up galera manifests: docs and obsolete code 2013-06-28 18:15:40 +04:00
Gemfile Create Rakefile to execute lint and spec tasks 2015-10-21 22:19:56 -05:00
Modulefile Remove vendor/downstream specific code 2015-11-24 13:51:11 +00:00
Rakefile Initial Percona cluster support added 2015-07-07 11:53:17 -05:00
README Initial commit 2012-09-07 17:38:58 -07:00

This is a good start to play around with the galera multi-master mysql synchronous replication (http://www.codership.com/products/mysql_galera)

HOWTO:

 * play around (add a database and data, chaos-monkey nodes etc.)


WARNING

Change the mysql root password in production and limit access to galera cluster members!

TODO

 * naming: master -> donor
 * put a load balancer in front of the cluster
 * make cluster "masterless"

nodes.pp

# nodes
$cluster_name = 'wsrep_galera_cluster'

node /mysql-db-01/ {
    class { 'galera' :
        cluster_name => $cluster_name
    }
}

node /mysql-db-0([2-9])/ {
    $master_ip = '172.18.67.254'
    class { 'galera' :
        cluster_name => $cluster_name,
        master_ip    => $master_ip
    }
}