[manual] digest: add the cron job that will trigger digest emails.

Manual deployment instructions:

On staging, do a puppet apply.

No action needs to be taken for the prod deploy.

(imported from commit 0f6e5ab22aaeacfcc69d57de12f2bb6fac6f0635)
This commit is contained in:
Jessica McKellar
2013-12-16 16:38:39 -05:00
parent 1d11e2cce0
commit 8bb1caec8f
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
MAILTO=root
# Send digest emails once a day.
0 11 * * * zulip cd /home/zulip/deployments/current && python manage.py enqueue_digest_emails

View File

@@ -38,6 +38,13 @@ class zulip_internal::staging_app_frontend {
mode => 644,
source => "puppet:///modules/zulip_internal/cron.d/clearsessions",
}
file { "/etc/cron.d/send-digest-emails":
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip_internal/cron.d/send-digest-emails",
}
# Staging has our Apple Push Notifications Service private key at
# /etc/ssl/django-private/apns-dev.pem
}