Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

kandra: Change the remaining check_send_receive_time to use zulip::cron.

Alex Vandiver908a805d3e5f
diff --git a/puppet/kandra/manifests/profile/staging_app_frontend.pp b/puppet/kandra/manifests/profile/staging_app_frontend.pp
index 1bbd4046080..d9700f36c4e 100644
--- a/puppet/kandra/manifests/profile/staging_app_frontend.pp
+++ b/puppet/kandra/manifests/profile/staging_app_frontend.pp
@@ -19,11 +19,10 @@ class kandra::profile::staging_app_frontend inherits kandra::profile::base {
}
# Eventually, this will go in a staging_app_frontend_once.pp
- file { '/etc/cron.d/check_send_receive_time':
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- source => 'puppet:///modules/kandra/cron.d/check_send_receive_time',
+ zulip::cron { 'check_send_receive_time':
+ hour => '*',
+ minute => '*',
+ command => '/usr/lib/nagios/plugins/zulip_app_frontend/check_send_receive_time --site=https://$(/home/zulip/deployments/current/scripts/get-django-setting NAGIOS_BOT_HOST) >/dev/null',
+ use_proxy => false,
}
}