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

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

Issue 11468051: Update stats processing (Closed)
Patch Set: Created Aug. 23, 2013, 1:58 p.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
Index: modules/sitescripts/manifests/init.pp
===================================================================
--- a/modules/sitescripts/manifests/init.pp
+++ b/modules/sitescripts/manifests/init.pp
@@ -1,19 +1,28 @@
class sitescripts (
$sitescriptsini_source = undef
){
- file {'/etc/sitescripts.ini':
+ concat {'/etc/sitescripts.ini':
mode => 644,
owner => root,
group => root,
- source => $sitescriptsini_source
}
+ define configfragment($source = $title)
+ {
+ concat::fragment {$source:
+ target => '/etc/sitescripts.ini',
+ source => $source
+ }
+ }
+
+ configfragment {$sitescriptsini_source: }
+
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":

Powered by Google App Engine
This is Rietveld