File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
class pe_databases::maintenance (
2
2
Boolean $disable_maintenace = false ,
3
- Integer $maint_cron_weekday = 6,
4
- Integer $maint_cron_hour = 1,
5
- Integer $maint_cron_minute = 0,
3
+ Optional[ Integer] $maint_cron_weekday = undef , #DEPRECATED
4
+ Optional[ Integer] $maint_cron_hour = undef , #DEPRECATED
5
+ Optional[ Integer] $maint_cron_minute = undef , #DEPRECATED
6
6
String $logging_directory = ' /var/log/puppetlabs/pe_databases_cron' ,
7
7
String $script_directory = $pe_databases::scripts_dir,
8
8
){
66
66
command => " su - pe-postgres -s /bin/bash -c '/opt/puppetlabs/server/bin/reindexdb --all; /opt/puppetlabs/server/bin/vacuumdb --analyze --verbose --all' > ${logging_directory} /output.log 2> ${logging_directory} /output_error.log" ,
67
67
require => File [$logging_directory , $script_directory ],
68
68
}
69
+
70
+ if empty($maint_cron_weekday ) == false {
71
+ warning (' pe_databases::maintenance::maint_cron_weekday is deprecated and will be removed in a future release' )
72
+ }
73
+ if empty($maint_cron_hour ) == false {
74
+ warning (' pe_databases::maintenance::maint_cron_hour is deprecated and will be removed in a future release' )
75
+ }
76
+ if empty($maint_cron_minute ) == false {
77
+ warning (' pe_databases::maintenance::maint_cron_minute is deprecated and will be removed in a future release' )
78
+ }
69
79
}
You can’t perform that action at this time.
0 commit comments