fuel-library/deployment/puppet/mmm
2013-02-28 21:46:19 +04:00
..
lib/facter Initial commit 2012-09-07 17:38:58 -07:00
manifests Initial commit 2012-09-07 17:38:58 -07:00
templates Initial commit 2012-09-07 17:38:58 -07:00
.gitignore Ignore metadata.json 2013-01-11 14:09:25 +04:00
.project Add project files 2013-01-10 18:37:05 +04:00
LICENSE Initial commit 2012-09-07 17:38:58 -07:00
Modulefile Remove stolen examples 2013-02-28 21:46:19 +04:00
README Initial commit 2012-09-07 17:38:58 -07:00

puppet-mmm

This is the puppet-mmm module.

Usage:

recommend creating a services/manifests/s_mmmcommon.pp 

define services::s_mmmcommon {
        mmm::cluster::config { "mmm cluster config ${name}":
                ensure                => 'present',
                cluster_interface     => 'eth0:2',
                replication_user      => 'replication',
                replication_password  => 'xxxxxxxxx',
                agent_user            => 'mmm_agent',
                agent_password        => 'xxxxxxxxxxxxxxxxxx',
                monitor_user          =>' mmm_monitor',
                monitor_password      => 'xxxxxxxxxxxxxxxxxx',
                monitor_ip            => '192.168.159.58',
                masters               => [ [ 'tx-db01', '192.168.155.134', 'tx-db02' ], ['tx-db02', '192.168.129.88', 'tx-db01'] ],
                slaves                => [ [ 'tx-dbslave-01', '192.168.129.9'], [ 'tx-dbslave-02', '192.168.181.160' ] ],
                readers               => ['tx-db01', 'tx-db02', 'tx-dbslave-01', 'tx-dbslave-02' ],
                writer_virtual_ip     => '192.168.135.56',
                reader_virtual_ips    => ['192.168.135.151','192.168.169.32','192.168.182.102'],
                localsubnet           => '192.168.%',
                reader_user           => 'webapp',
                reader_pass           => 'xxxxxxxxxxxxxxxxxx',
                writer_user           => 'webapp_write',
                writer_pass           => 'xxxxxxxxxxxxxxxxxx',
                mmm_type              => $name
        }
}


Ensure your replicaiton_password is less than 32 characters: http://bugs.mysql.com/bug.php?id=43439

Your dbserver node/class will contain:

    services::s_mmmcommon{ 'agent': }

And the monitor node/class will contain:

services::s_mmmcommon { 'monitor': }