| OLD | NEW |
| 1 class statsmaster( | 1 class statsmaster( |
| 2 $domain, | 2 $domain, |
| 3 $certificate, | 3 $certificate, |
| 4 $private_key, | 4 $private_key, |
| 5 $is_default=false | 5 $is_default=false |
| 6 ) { | 6 ) { |
| 7 | 7 |
| 8 include statsmaster::downloads, statsmaster::awstats | 8 include statsmaster::downloads, statsmaster::awstats |
| 9 | 9 |
| 10 # Realize known_hosts from base module | 10 # Realize known_hosts from base module |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 is_default => $is_default, | 57 is_default => $is_default, |
| 58 certificate => $certificate, | 58 certificate => $certificate, |
| 59 private_key => $private_key, | 59 private_key => $private_key, |
| 60 log => 'access_log_stats' | 60 log => 'access_log_stats' |
| 61 } | 61 } |
| 62 | 62 |
| 63 file {'/opt/cron_geoipdb_update.sh': | 63 file {'/opt/cron_geoipdb_update.sh': |
| 64 ensure => absent, | 64 ensure => absent, |
| 65 } | 65 } |
| 66 | 66 |
| 67 file {'/opt/cron_geoipdb_update.py': | 67 cron {'geoipdb_update': |
| 68 ensure => file, | 68 ensure => 'absent', |
| 69 owner => root, | |
| 70 mode => 0750, | |
| 71 source => 'puppet:///modules/statsmaster/cron_geoipdb_update.py', | |
| 72 } | 69 } |
| 73 | 70 |
| 74 cron {'geoipdb_update': | 71 class {'geoip': |
| 75 ensure => present, | 72 cron => { |
| 76 require => File['/opt/cron_geoipdb_update.py'], | 73 'environment' => ['MAILTO=admins@adblockplus.org,root'], |
| 77 command => '/opt/cron_geoipdb_update.py', | 74 'hour' => 3, |
| 78 environment => ['MAILTO=admins@adblockplus.org,root'], | 75 'minute' => 15, |
| 79 user => root, | 76 'monthday' => 3, |
| 80 hour => 3, | 77 }, |
| 81 minute => 15, | 78 script => '/opt/cron_geoipdb_update.py', |
| 82 monthday => 3, | |
| 83 } | 79 } |
| 84 } | 80 } |
| OLD | NEW |