| OLD | NEW |
| 1 node 'web2' { | 1 node 'web2' { |
| 2 include statsclient | 2 include statsclient |
| 3 | 3 |
| 4 class {'web::server': | 4 class {'web::server': |
| 5 vhost => 'adblockplus.org', | 5 vhost => 'adblockplus.org', |
| 6 certificate => 'adblockplus.org_sslcert.pem', | 6 certificate => 'adblockplus.org_sslcert.pem', |
| 7 private_key => 'adblockplus.org_sslcert.key', | 7 private_key => 'adblockplus.org_sslcert.key', |
| 8 is_default => true, | 8 is_default => true, |
| 9 aliases => ['www.adblockplus.org'], | 9 aliases => ['www.adblockplus.org'], |
| 10 custom_config => template('web/adblockplus.org.conf.erb'), | 10 custom_config => template('web/adblockplus.org.conf.erb'), |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 command => "hg clone --noupdate https://hg.adblockplus.org/subscriptionlist
$subscriptions_repo", | 41 command => "hg clone --noupdate https://hg.adblockplus.org/subscriptionlist
$subscriptions_repo", |
| 42 path => '/usr/local/bin:/usr/bin:/bin', | 42 path => '/usr/local/bin:/usr/bin:/bin', |
| 43 user => 'sitescripts', | 43 user => 'sitescripts', |
| 44 timeout => 0, | 44 timeout => 0, |
| 45 onlyif => "test ! -d $subscriptions_repo", | 45 onlyif => "test ! -d $subscriptions_repo", |
| 46 require => [Package['mercurial'], File[$sitescripts_var_dir]] | 46 require => [Package['mercurial'], File[$sitescripts_var_dir]] |
| 47 } | 47 } |
| 48 | 48 |
| 49 cron {'update_repository_subscriptionlist': | 49 cron {'update_repository_subscriptionlist': |
| 50 ensure => present, | 50 ensure => present, |
| 51 environment => ['MAILTO=admins@adblockplus.org'], | 51 environment => hiera('cron::environment', []), |
| 52 command => "hg pull --quiet --repository $subscriptions_repo", | 52 command => "hg pull --quiet --repository $subscriptions_repo", |
| 53 user => 'sitescripts', | 53 user => 'sitescripts', |
| 54 minute => '*/10', | 54 minute => '*/10', |
| 55 require => Exec['fetch_repository_subscriptionlist'] | 55 require => Exec['fetch_repository_subscriptionlist'] |
| 56 } | 56 } |
| 57 } | 57 } |
| OLD | NEW |