Skip to content

Commit 7db2865

Browse files
authored
Merge pull request #958 from elmobp/patch-1
PROCESS is now required
2 parents 9ce9ce1 + 3241cca commit 7db2865

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

manifests/backup/xtrabackup.pp

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
$postscript = false,
2424
$execpath = '/usr/bin:/usr/sbin:/bin:/sbin',
2525
$optional_args = [],
26+
$additional_cron_args = ''
2627
) inherits mysql::params {
2728

2829
package{ $xtrabackup_package_name:
@@ -40,14 +41,14 @@
4041
ensure => $ensure,
4142
user => "${backupuser}@localhost",
4243
table => '*.*',
43-
privileges => [ 'RELOAD', 'LOCK TABLES', 'REPLICATION CLIENT' ],
44+
privileges => [ 'RELOAD', 'PROCESS', 'LOCK TABLES', 'REPLICATION CLIENT' ],
4445
require => Mysql_user["${backupuser}@localhost"],
4546
}
4647
}
4748

4849
cron { 'xtrabackup-weekly':
4950
ensure => $ensure,
50-
command => "/usr/local/sbin/xtrabackup.sh ${backupdir}",
51+
command => "/usr/local/sbin/xtrabackup.sh ${backupdir} ${additional_cron_args}",
5152
user => 'root',
5253
hour => $time[0],
5354
minute => $time[1],
@@ -57,7 +58,7 @@
5758

5859
cron { 'xtrabackup-daily':
5960
ensure => $ensure,
60-
command => "/usr/local/sbin/xtrabackup.sh --incremental ${backupdir}",
61+
command => "/usr/local/sbin/xtrabackup.sh --incremental ${backupdir} ${additional_cron_args}",
6162
user => 'root',
6263
hour => $time[0],
6364
minute => $time[1],

0 commit comments

Comments
 (0)