puppet: Remove backups cron job if they are no longer enabled.

This commit is contained in:
Alex Vandiver
2024-03-19 14:50:59 +00:00
committed by Tim Abbott
parent 44ff1c24df
commit d726f87035
2 changed files with 6 additions and 2 deletions

View File

@@ -104,5 +104,9 @@ class zulip::postgresql_base {
$backups_directory = zulipconf('postgresql', 'backups_directory', '')
if $backups_s3_bucket != '' or $backups_directory != '' {
include zulip::postgresql_backups
} else {
file { '/etc/cron.d/pg_backup_and_purge':
ensure => absent,
}
}
}