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: Created Aug. 10, 2015, 11:13 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..c7bfe22c89a38eeb792a776784de130ced68491d 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_sitescripts"],
Fred 2015/08/10 11:46:46 I guess you meant require => Exec["fetch_notificat
mathias 2015/08/10 12:00:02 Thank you! Classic copy+paste issue that worked be
+ }
+
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