| OLD | NEW | 
|---|
| 1 class statsclient ( | 1 class statsclient ( | 
| 2     $log_path, | 2     $log_path, | 
| 3     $custom_sitescriptsini_source = [], | 3     $custom_sitescriptsini_source = [], | 
| 4   ) { | 4   ) { | 
| 5 | 5 | 
| 6   $sitescriptsini_source = flatten(['puppet:///modules/statsclient/sitescripts.i
    ni', $custom_sitescriptsini_source]) | 6   $sitescriptsini_source = flatten(['puppet:///modules/statsclient/sitescripts.i
    ni', $custom_sitescriptsini_source]) | 
| 7 | 7 | 
| 8   user {'stats': | 8   user {'stats': | 
| 9     ensure => present, | 9     ensure => present, | 
| 10     home => '/home/stats', | 10     home => '/home/stats', | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 54   } | 54   } | 
| 55 | 55 | 
| 56   cron {'mirrorstats': | 56   cron {'mirrorstats': | 
| 57     ensure => present, | 57     ensure => present, | 
| 58     require => [ | 58     require => [ | 
| 59                  User['stats'], | 59                  User['stats'], | 
| 60                  Package['pypy'], | 60                  Package['pypy'], | 
| 61                  Exec["fetch_sitescripts"] | 61                  Exec["fetch_sitescripts"] | 
| 62                ], | 62                ], | 
| 63     command => "gzip -cd ${log_path} | pypy -m sitescripts.stats.bin.logprocesso
    r", | 63     command => "gzip -cd ${log_path} | pypy -m sitescripts.stats.bin.logprocesso
    r", | 
| 64     environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescript
    s'], | 64     environment => ['MAILTO=admins@adblockplus.org,root', 'PYTHONPATH=/opt/sites
    cripts'], | 
| 65     user => stats, | 65     user => stats, | 
| 66     hour => 0, | 66     hour => 0, | 
| 67     minute => 25, | 67     minute => 25, | 
| 68   } | 68   } | 
| 69 | 69 | 
| 70   cron {'geoipdb_update': | 70   cron {'geoipdb_update': | 
| 71     ensure => present, | 71     ensure => present, | 
| 72     require => File['/opt/cron_geoipdb_update.sh'], | 72     require => File['/opt/cron_geoipdb_update.sh'], | 
| 73     command => '/opt/cron_geoipdb_update.sh', | 73     command => '/opt/cron_geoipdb_update.sh', | 
|  | 74     environment => ['MAILTO=admins@adblockplus.org,root'], | 
| 74     user => root, | 75     user => root, | 
| 75     hour => 3, | 76     hour => 3, | 
| 76     minute => 15, | 77     minute => 15, | 
| 77     monthday => 3, | 78     monthday => 3, | 
| 78   } | 79   } | 
| 79 } | 80 } | 
| OLD | NEW | 
|---|