Skip to content

Commit 762d4b8

Browse files
committed
Deprecate unused parameters
1 parent 00b97af commit 762d4b8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

manifests/maintenance.pp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class pe_databases::maintenance (
22
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
66
String $logging_directory = '/var/log/puppetlabs/pe_databases_cron',
77
String $script_directory = $pe_databases::scripts_dir,
88
){
@@ -66,4 +66,14 @@
6666
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",
6767
require => File[$logging_directory, $script_directory],
6868
}
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+
}
6979
}

0 commit comments

Comments
 (0)