fuel-library/deployment/puppet/galera
Alex Schultz abd991b230 Update CI tasks and module fixtures
This change updates the fixtures files for the modules within
fuel-library to use the relative path to the upstream modules used by
fuel-library. With this change we are also adding an initial prep task
that is used by CI to pull down all the modules first and only one time
to reduce the amount of repeated calls to the upstream git repositories.

Included in this change is also an update to exclude all the upstream
modules from the spec and lint tasks as those are maintained in the
upstream modules and should not be done when testing fuel-library.

This change also adds documentation to the README.md on how to run the
tests from the root of fuel-library.

Change-Id: I9cde21b94a8367fd45cf046af48d7618076a385c
Related-Bug: #1535832
2016-01-25 15:11:37 +00:00
..
lib/facter Tune mysql and galera backend settings on scale 2014-03-19 14:36:03 +02:00
manifests Merge "Rewrite service override to use policy-rc.d" 2016-01-21 12:52:46 +00:00
spec Rewrite service override to use policy-rc.d 2016-01-08 15:56:36 -07:00
templates Tweak MySQL logging configuration 2016-01-15 10:27:42 -08:00
.fixtures.yml Update CI tasks and module fixtures 2016-01-25 15:11:37 +00: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
    }
}