Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/notificationserver/manifests/init.pp

Issue 29323423: Issue 2869 - Setup cron-job to update notifications (Closed)
Patch Set: Issue 2869 - Fix requirement declaration for Cron[update_notifications] Created Aug. 10, 2015, 11:59 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/notificationserver/manifests/init.pp
diff --git a/modules/notificationserver/manifests/init.pp b/modules/notificationserver/manifests/init.pp
index 37a53712e98ac063b627014f8ae912c04e675a7d..eb4755261d5fe40ff0f3b5e205f5fdb4db783828 100644
--- a/modules/notificationserver/manifests/init.pp
+++ b/modules/notificationserver/manifests/init.pp
@@ -21,6 +21,14 @@ class notificationserver($is_default = false) {
onlyif => 'test ! -d /opt/notifications'
}
+ cron {'update_notifications':
+ command => 'hg pull -q -u -R /opt/notifications',
+ environment => ['MAILTO=admins@adblockplus.org,root'],
+ minute => '*/5',
+ user => 'nginx',
+ require => Exec['fetch_notifications'],
+ }
+
include spawn-fcgi
package {'python-flup':}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld