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"], |
+ } |
} |