puppet: Don't run calculate-first-visible-message-id on most systems.

This should only be run on systems that are running zilencer, because
the cron job is part of the zilencer project.
This commit is contained in:
Tim Abbott 2018-10-30 11:39:42 -07:00
parent ef8113556a
commit dc7d44a245
2 changed files with 9 additions and 5 deletions

View File

@ -35,11 +35,7 @@ class zulip::app_frontend_once {
} }
file { '/etc/cron.d/calculate-first-visible-message-id': file { '/etc/cron.d/calculate-first-visible-message-id':
ensure => file, ensure => absent,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/zulip/cron.d/calculate-first-visible-message-id',
} }
file { '/etc/cron.d/clearsessions': file { '/etc/cron.d/clearsessions':

View File

@ -30,6 +30,14 @@ class zulip_ops::prod_app_frontend {
source => 'puppet:///modules/zulip_ops/nagios_plugins/zulip_zephyr_mirror', source => 'puppet:///modules/zulip_ops/nagios_plugins/zulip_zephyr_mirror',
} }
# TODO: This should ideally move to a prod_app_frontend_once.pp
file { '/etc/cron.d/update-first-visible-message-id':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/zulip/cron.d/calculate-first-visible-message-id',
}
# Prod has our Apple Push Notifications Service private key at # Prod has our Apple Push Notifications Service private key at
# /etc/ssl/django-private/apns-dist.pem # /etc/ssl/django-private/apns-dist.pem
} }