puppet: Remove typo'd cron job.

54b6a83412 fixed the typo introduced in 49ad188449, but that does
not clean up existing installs which had the file with the wrong name
already.

Remove the file with the typo'd name, so two jobs do not race, and fix
the typo in the comment.
This commit is contained in:
Alex Vandiver 2022-05-13 01:05:08 -07:00 committed by Tim Abbott
parent 513fcb7bd5
commit 814841c9ec
2 changed files with 5 additions and 1 deletions

View File

@ -220,4 +220,8 @@ class zulip::app_frontend_base {
mode => '0644',
source => 'puppet:///modules/zulip/cron.d/fetch-tor-exit-nodes',
}
# This was originally added with a typo in the name.
file { '/etc/cron.d/fetch-for-exit-nodes':
ensure => absent,
}
}

View File

@ -888,7 +888,7 @@ def get_tor_ips() -> Set[str]:
if not settings.RATE_LIMIT_TOR_TOGETHER:
return set()
# Cron job in /etc/cron.d/fetch-for-exit-nodes fetches this
# Cron job in /etc/cron.d/fetch-tor-exit-nodes fetches this
# hourly; we cache it in memcached to prevent going to disk on
# every unauth'd request. In case of failures to read, we
# circuit-break so 2 failures cause a 10-minute backoff.