puppet: Add a daily cron-job to send zulip update announcements.

A daily cron job is configured to run the
'send_zulip_update_announcements' management command.
This commit is contained in:
Prakhar Pratyush 2024-03-22 13:42:36 +05:30 committed by Tim Abbott
parent b9d9676b43
commit 3add31496f
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,6 @@
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
USER=zulip
# Cron job to send zulip update announcements hourly, if there are any.
47 * * * * zulip /home/zulip/deployments/current/manage.py send_zulip_update_announcements

View File

@ -74,4 +74,12 @@ class zulip::app_frontend_once {
mode => '0644', mode => '0644',
source => 'puppet:///modules/zulip/cron.d/clearsessions', source => 'puppet:///modules/zulip/cron.d/clearsessions',
} }
file { '/etc/cron.d/send_zulip_update_announcements':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/zulip/cron.d/send_zulip_update_announcements',
}
} }