fuel-library/deployment/puppet/galera
Vladimir Kuklin 0ccd804849 Backward-compatible commit for packaging of fuel-library
based on Change-Id: Ie759857fb94db9aa94aaeaeda2c6ab5bb159cc9e
All the work done for fuel-library packaging

Should be overriden by the change above after we switch
CI to package-based

implements blueprint: package-fuel-components

Change-Id: I48ed37a009b42f0a9a21cc869a869edb505b39c3
2015-04-16 11:23:29 +03:00
..
files/ocf Fix Galera behavior 2015-04-08 23:23:55 +00:00
lib/facter Tune mysql and galera backend settings on scale 2014-03-19 14:36:03 +02:00
manifests Backward-compatible commit for packaging of fuel-library 2015-04-16 11:23:29 +03:00
spec Refactor Galera module 2014-07-22 07:41:45 +00:00
templates Merge "Add the parameter innodb_flush_method" 2015-03-30 09:31:42 +00:00
.gitignore Allow metadata.json 2013-01-10 15:18:41 +04:00
.project cleaning up galera manifests: docs and obsolete code 2013-06-28 18:15:40 +04:00
Gemfile Refactor Galera module 2014-07-22 07:41:45 +00:00
Modulefile Refactor Galera module 2014-07-22 07:41:45 +00:00
Rakefile Refactor Galera module 2014-07-22 07:41:45 +00: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
    }
}