2013-09-13 19:12:33 +02:00
|
|
|
# Deprecated class
|
2012-04-24 07:53:59 +02:00
|
|
|
class mysql::backup (
|
2012-04-30 17:07:46 +02:00
|
|
|
$backupuser,
|
|
|
|
$backuppassword,
|
|
|
|
$backupdir,
|
2012-09-26 20:50:55 +02:00
|
|
|
$backupcompress = true,
|
2013-04-18 08:51:50 +02:00
|
|
|
$backuprotate = 30,
|
2013-07-03 14:31:31 +02:00
|
|
|
$delete_before_dump = false,
|
2013-08-15 15:04:14 +02:00
|
|
|
$backupdatabases = [],
|
2013-08-27 22:15:29 +02:00
|
|
|
$file_per_database = false,
|
2013-09-13 19:12:33 +02:00
|
|
|
$ensure = 'present',
|
|
|
|
$time = ['23', '5'],
|
2012-04-24 07:53:59 +02:00
|
|
|
) {
|
|
|
|
|
2013-09-13 19:12:33 +02:00
|
|
|
crit("This class has been deprecated and callers should directly call
|
|
|
|
mysql::server::backup now.")
|
2012-04-24 07:53:59 +02:00
|
|
|
|
2013-09-13 19:12:33 +02:00
|
|
|
class { 'mysql::server::backup':
|
|
|
|
ensure => $ensure,
|
|
|
|
backupuser => $backupuser,
|
|
|
|
backuppassword => $backuppassword,
|
|
|
|
backupdir => $backupdir,
|
|
|
|
backupcompress => $backupcompress,
|
|
|
|
backuprotate => $backuprotate,
|
|
|
|
delete_before_dump => $delete_before_dump,
|
|
|
|
backupdatabases => $backupdatabases,
|
|
|
|
file_per_database => $file_per_database,
|
|
|
|
time => $time,
|
2012-04-24 07:53:59 +02:00
|
|
|
}
|
2013-08-13 23:44:41 +02:00
|
|
|
|
2012-04-24 07:53:59 +02:00
|
|
|
}
|