We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ab2eda commit 3241ccaCopy full SHA for 3241cca
manifests/backup/xtrabackup.pp
@@ -23,6 +23,7 @@
23
$postscript = false,
24
$execpath = '/usr/bin:/usr/sbin:/bin:/sbin',
25
$optional_args = [],
26
+ $additional_cron_args = ''
27
) inherits mysql::params {
28
29
package{ $xtrabackup_package_name:
@@ -47,7 +48,7 @@
47
48
49
cron { 'xtrabackup-weekly':
50
ensure => $ensure,
- command => "/usr/local/sbin/xtrabackup.sh ${backupdir}",
51
+ command => "/usr/local/sbin/xtrabackup.sh ${backupdir} ${additional_cron_args}",
52
user => 'root',
53
hour => $time[0],
54
minute => $time[1],
@@ -57,7 +58,7 @@
57
58
59
cron { 'xtrabackup-daily':
60
- command => "/usr/local/sbin/xtrabackup.sh --incremental ${backupdir}",
61
+ command => "/usr/local/sbin/xtrabackup.sh --incremental ${backupdir} ${additional_cron_args}",
62
63
64
0 commit comments