|
24 | 24 | #
|
25 | 25 | # @param backupuser
|
26 | 26 | # MySQL user to create with backup administrator privileges.
|
| 27 | +# @param backupcronuser |
| 28 | +# User to use for backup cron jobs. Defaults to root. |
27 | 29 | # @param backuppassword
|
28 | 30 | # Password to create for `backupuser`.
|
29 | 31 | # @param backupdir
|
|
84 | 86 | # Give a list of excluded databases when using file_per_database, e.g.: [ 'information_schema', 'performance_schema' ]
|
85 | 87 | class mysql::server::backup (
|
86 | 88 | $backupuser = undef,
|
| 89 | + $backupcronuser = $mysql::params::backupcronuser, |
87 | 90 | Optional[Variant[String, Sensitive[String]]] $backuppassword = undef,
|
88 | 91 | $backupdir = undef,
|
89 | 92 | $backupdirmode = '0700',
|
|
121 | 124 | create_resources('class', {
|
122 | 125 | "mysql::backup::${provider}" => {
|
123 | 126 | 'backupuser' => $backupuser,
|
| 127 | + 'backupcronuser' => $backupcronuser, |
124 | 128 | 'backuppassword' => $backuppassword,
|
125 | 129 | 'backupdir' => $backupdir,
|
126 | 130 | 'backupdirmode' => $backupdirmode,
|
127 |
| - 'backupdirowner' => $backupdirowner, |
| 131 | + 'backupdirowner' => $backupcronuser, |
128 | 132 | 'backupdirgroup' => $backupdirgroup,
|
129 | 133 | 'backupcompress' => $backupcompress,
|
130 | 134 | 'backuprotate' => $backuprotate,
|
|
0 commit comments