Skip to content

Commit 3241cca

Browse files
committed
Pass in additional_cron_args to cron
1 parent 5ab2eda commit 3241cca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manifests/backup/xtrabackup.pp

+3-2
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:
@@ -47,7 +48,7 @@
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)