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

Delta Between Two Patch Sets: modules/sitescripts/manifests/init.pp

Issue 11202005: Update sitescripts automatically (Closed)
Left Patch Set: Created July 25, 2013, 8:11 a.m.
Right Patch Set: Created July 26, 2013, 11:37 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 class sitescripts ( 1 class sitescripts (
2 $sitescriptsini_source = undef 2 $sitescriptsini_source = undef
3 ){ 3 ){
4 4
5 file {'/etc/sitescripts.ini': 5 file {'/etc/sitescripts.ini':
6 mode => 644, 6 mode => 644,
7 owner => root, 7 owner => root,
8 group => root, 8 group => root,
9 source => $sitescriptsini_source 9 source => $sitescriptsini_source
10 } 10 }
11 11
12 exec { "fetch_sitescripts": 12 exec { "fetch_sitescripts":
13 command => "hg clone https://hg.adblockplus.org/sitescripts /opt/sitescripts ", 13 command => "hg clone https://hg.adblockplus.org/sitescripts /opt/sitescripts ",
14 path => ["/usr/bin/", "/bin/"], 14 path => ["/usr/bin/", "/bin/"],
15 require => Package['mercurial'], 15 require => Package['mercurial'],
16 onlyif => "test ! -d /opt/sitescripts" 16 onlyif => "test ! -d /opt/sitescripts"
17 } 17 }
18 18
19 cron {"update_sitescripts": 19 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
20 ensure => present, 20 ensure => present,
21 command => "hg pull -q -u -R /opt/sitescripts", 21 command => "hg pull -q -u -R /opt/sitescripts",
22 user => root 22 user => root,
23 require => Exec["fetch_sitescripts"],
23 } 24 }
24 } 25 }
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld