parametrize xtradb package name (#860)
This commit is contained in:
parent
2175f7de82
commit
041ef06c78
2 changed files with 26 additions and 24 deletions
|
@ -1,29 +1,30 @@
|
|||
# See README.me for usage.
|
||||
class mysql::backup::xtrabackup (
|
||||
$backupuser = '',
|
||||
$backuppassword = '',
|
||||
$backupdir = '',
|
||||
$maxallowedpacket = '1M',
|
||||
$backupmethod = 'mysqldump',
|
||||
$backupdirmode = '0700',
|
||||
$backupdirowner = 'root',
|
||||
$backupdirgroup = $mysql::params::root_group,
|
||||
$backupcompress = true,
|
||||
$backuprotate = 30,
|
||||
$ignore_events = true,
|
||||
$delete_before_dump = false,
|
||||
$backupdatabases = [],
|
||||
$file_per_database = false,
|
||||
$include_triggers = true,
|
||||
$include_routines = false,
|
||||
$ensure = 'present',
|
||||
$time = ['23', '5'],
|
||||
$prescript = false,
|
||||
$postscript = false,
|
||||
$execpath = '/usr/bin:/usr/sbin:/bin:/sbin',
|
||||
$xtrabackup_package_name = $mysql::params::xtrabackup_package_name,
|
||||
$backupuser = '',
|
||||
$backuppassword = '',
|
||||
$backupdir = '',
|
||||
$maxallowedpacket = '1M',
|
||||
$backupmethod = 'mysqldump',
|
||||
$backupdirmode = '0700',
|
||||
$backupdirowner = 'root',
|
||||
$backupdirgroup = $mysql::params::root_group,
|
||||
$backupcompress = true,
|
||||
$backuprotate = 30,
|
||||
$ignore_events = true,
|
||||
$delete_before_dump = false,
|
||||
$backupdatabases = [],
|
||||
$file_per_database = false,
|
||||
$include_triggers = true,
|
||||
$include_routines = false,
|
||||
$ensure = 'present',
|
||||
$time = ['23', '5'],
|
||||
$prescript = false,
|
||||
$postscript = false,
|
||||
$execpath = '/usr/bin:/usr/sbin:/bin:/sbin',
|
||||
) inherits mysql::params {
|
||||
|
||||
package{ 'percona-xtrabackup':
|
||||
package{ $xtrabackup_package_name:
|
||||
ensure => $ensure,
|
||||
}
|
||||
|
||||
|
@ -34,7 +35,7 @@ class mysql::backup::xtrabackup (
|
|||
hour => $time[0],
|
||||
minute => $time[1],
|
||||
weekday => '0',
|
||||
require => Package['percona-xtrabackup'],
|
||||
require => Package[$xtrabackup_package_name],
|
||||
}
|
||||
|
||||
cron { 'xtrabackup-daily':
|
||||
|
@ -44,7 +45,7 @@ class mysql::backup::xtrabackup (
|
|||
hour => $time[0],
|
||||
minute => $time[1],
|
||||
weekday => '1-6',
|
||||
require => Package['percona-xtrabackup'],
|
||||
require => Package[$xtrabackup_package_name],
|
||||
}
|
||||
|
||||
file { 'mysqlbackupdir':
|
||||
|
|
|
@ -30,6 +30,7 @@ class mysql::params {
|
|||
$client_dev_package_provider = undef
|
||||
$daemon_dev_package_ensure = 'present'
|
||||
$daemon_dev_package_provider = undef
|
||||
$xtrabackup_package_name = 'percona-xtrabackup'
|
||||
|
||||
|
||||
case $::osfamily {
|
||||
|
|
Loading…
Reference in a new issue