summaryrefslogtreecommitdiffstats
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 788fd60..d202785 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -131,6 +131,12 @@ define mysql::mysql_replication{
require => Exec["grants all to replication user"],
}
+ exec { "remove set master datafile":
+ command => "rm /var/lib/mysql/set_master_repl_data.sql",
+ unless => "$mysql_cmd_repl_with_pwd --execute=\"show slave status;\" | grep Wait",
+ require => File["/var/lib/mysql/gather_master_data.bash"],
+ }
+
exec { "set master data for slave":
command => "/var/lib/mysql/gather_master_data.bash",
creates => "/var/lib/mysql/set_master_repl_data.sql",