OLD | NEW |
1 class sitescripts ( | 1 class sitescripts ( |
2 $sitescriptsini_source = undef | 2 $sitescriptsini_source = undef |
3 ){ | 3 ){ |
4 | 4 |
5 concat {'/etc/sitescripts.ini': | 5 concat {'/etc/sitescripts.ini': |
6 mode => 644, | 6 mode => 644, |
7 owner => root, | 7 owner => root, |
8 group => root, | 8 group => root, |
9 } | 9 } |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 exec { "fetch_sitescripts": | 21 exec { "fetch_sitescripts": |
22 command => "hg clone https://hg.adblockplus.org/sitescripts /opt/sitescripts
", | 22 command => "hg clone https://hg.adblockplus.org/sitescripts /opt/sitescripts
", |
23 path => ["/usr/bin/", "/bin/"], | 23 path => ["/usr/bin/", "/bin/"], |
24 require => Package['mercurial'], | 24 require => Package['mercurial'], |
25 onlyif => "test ! -d /opt/sitescripts" | 25 onlyif => "test ! -d /opt/sitescripts" |
26 } | 26 } |
27 | 27 |
28 cron {"update_sitescripts": | 28 cron {"update_sitescripts": |
29 ensure => present, | 29 ensure => present, |
30 command => "hg pull -q -u -R /opt/sitescripts", | 30 command => "hg pull -q -u -R /opt/sitescripts", |
| 31 environment => ['MAILTO=admins@adblockplus.org,root'], |
31 user => root, | 32 user => root, |
32 require => Exec["fetch_sitescripts"], | 33 require => Exec["fetch_sitescripts"], |
33 } | 34 } |
34 } | 35 } |
OLD | NEW |