File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 $execpath = ' /usr/bin:/usr/sbin:/bin:/sbin' ,
2020) {
2121
22- mysql_user { "${backupuser}@localhost" :
23- ensure => $ensure ,
24- password_hash => mysql_password($backuppassword ),
25- require => Class[' mysql::server::root_password' ],
26- }
27-
2822 package { 'percona-xtrabackup' :
2923 ensure => $ensure ,
3024 }
25+
3126 cron { 'xtrabackup-weekly' :
3227 ensure => $ensure ,
33- command => ' innobackupex $backupdir' ,
28+ command => " innobackupex ${ backupdir} " ,
3429 user => ' root' ,
3530 hour => $time [0],
3631 minute => $time [1],
3732 weekday => 0,
3833 require => Package[' percona-xtrabackup' ],
3934 }
35+
4036 cron { 'xtrabackup-daily' :
4137 ensure => $ensure ,
42- command => ' innobackupex --incremental $backupdir' ,
38+ command => " innobackupex --incremental ${ backupdir} " ,
4339 user => ' root' ,
4440 hour => $time [0],
4541 minute => $time [1],
5450 owner => $backupdirowner ,
5551 group => $backupdirgroup ,
5652 }
57-
5853}
You can’t perform that action at this time.
0 commit comments