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

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

Issue 11202005: Update sitescripts automatically (Closed)
Patch Set: Created July 25, 2013, 8:11 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/sitescripts/manifests/init.pp
===================================================================
--- a/modules/sitescripts/manifests/init.pp
+++ b/modules/sitescripts/manifests/init.pp
@@ -10,9 +10,15 @@ class sitescripts (
}
exec { "fetch_sitescripts":
command => "hg clone https://hg.adblockplus.org/sitescripts /opt/sitescripts",
path => ["/usr/bin/", "/bin/"],
require => Package['mercurial'],
onlyif => "test ! -d /opt/sitescripts"
}
+
+ cron {"update_sitescripts":
Felix Dahlke 2013/07/25 08:17:03 When is this job going to run if we don't specify
Wladimir Palant 2013/07/26 11:38:23 Every minute, this ensures that changes propagate
+ ensure => present,
+ command => "hg pull -q -u -R /opt/sitescripts",
+ user => root
+ }
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld