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 26, 2013, 11:37 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,16 @@ 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":
+ ensure => present,
+ command => "hg pull -q -u -R /opt/sitescripts",
+ user => root,
+ require => Exec["fetch_sitescripts"],
+ }
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld