File tree 1 file changed +18
-5
lines changed
1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 25
25
$postscript = false ,
26
26
$execpath = ' /usr/bin:/usr/sbin:/bin:/sbin' ,
27
27
$optional_args = [],
28
+ $mysqlbackupdir_ensure = ' directory' ,
29
+ $mysqlbackupdir_target = undef ,
28
30
) inherits mysql::params {
29
31
30
32
if $backupcompress {
84
86
content => template (' mysql/mysqlbackup.sh.erb' ),
85
87
}
86
88
87
- file { $backupdir:
88
- ensure => ' directory' ,
89
- mode => $backupdirmode ,
90
- owner => $backupdirowner ,
91
- group => $backupdirgroup ,
89
+ if $mysqlbackupdir_target {
90
+ file { $backupdir:
91
+ ensure => $mysqlbackupdir_ensure ,
92
+ target => $mysqlbackupdir_target ,
93
+ mode => $backupdirmode ,
94
+ owner => $backupdirowner ,
95
+ group => $backupdirgroup ,
96
+ }
97
+ } else {
98
+ file { $backupdir:
99
+ ensure => $mysqlbackupdir_ensure ,
100
+ mode => $backupdirmode ,
101
+ owner => $backupdirowner ,
102
+ group => $backupdirgroup ,
103
+ }
92
104
}
105
+
93
106
}
You can’t perform that action at this time.
0 commit comments