diff options
author | Don Brewer <dbrewer@dbrewer-host.usersys.redhat.com> | 2008-04-10 15:29:35 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2008-04-15 10:37:38 -0400 |
commit | e40032758b7ca9da2eb578920d2dedf17f1bb482 (patch) | |
tree | 910961aed76725325a5741b742fccf7a6bd5e97f | |
parent | 008e325636028c089ede04ad81993826838c743d (diff) | |
download | puppet-mysql-e40032758b7ca9da2eb578920d2dedf17f1bb482.tar.gz puppet-mysql-e40032758b7ca9da2eb578920d2dedf17f1bb482.tar.xz puppet-mysql-e40032758b7ca9da2eb578920d2dedf17f1bb482.zip |
Changed mysql machines to m2m,m2s
-rw-r--r-- | manifests/init.pp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index a5de0dc..3e9f6bc 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -79,13 +79,17 @@ class mysql::standalone inherits mysql::server { } } -class mysql::M2S inherits mysql::server { +class mysql::m2s inherits mysql::server { mysql::mysql_config {"set binary logging": binary_logging => true, } - - mysql::mysql_replication {"Configure Master Server for Master to Slave Replication", + + exec { "restart mysql server": + command => "service mysql restart", + unless => "$mysql_cmd_repl_with_pwd --execute=\"show master status;\" | grep mysqllog", + require => Service ["mysql"], } + } class mysql::slave inherits mysql::server { @@ -93,17 +97,15 @@ class mysql::slave inherits mysql::server { binary_logging => false, } - mysql::mysql_replication {"Configure Slave Server for Replication", - } + mysql::mysql_replication {"Configure Slave Server for Replication":} } -class mysql::M2M inherits mysql::server { +class mysql::m2m inherits mysql::server { mysql::mysql_config {"set binary logging": binary_logging => true, } - mysql::mysql_replication {"Configure Master Server for Master to Master Replication", - } + mysql::mysql_replication {"Configure Master Server for Master to Master Replication": } } define mysql::mysql_config($binary_logging){ |