parametrize xtradb package name (#860)

This commit is contained in:
Nemanja Delic 2016-07-01 15:45:35 +02:00 committed by David Schmitt
parent 2175f7de82
commit 041ef06c78
2 changed files with 26 additions and 24 deletions

View file

@ -1,5 +1,6 @@
# See README.me for usage.
class mysql::backup::xtrabackup (
$xtrabackup_package_name = $mysql::params::xtrabackup_package_name,
$backupuser = '',
$backuppassword = '',
$backupdir = '',
@ -23,7 +24,7 @@ class mysql::backup::xtrabackup (
$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':

View file

@ -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 {