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 |
+ } |
} |