| OLD | NEW | 
| (Empty) |  | 
 |   1 class updateserver { | 
 |   2   class {'nginx': | 
 |   3     worker_processes => 2, | 
 |   4     worker_connections => 4000, | 
 |   5     ssl_session_cache => off, | 
 |   6   } | 
 |   7  | 
 |   8   File { | 
 |   9     owner => root, | 
 |  10     group => root | 
 |  11   } | 
 |  12  | 
 |  13   file {'/var/www': | 
 |  14     ensure => directory, | 
 |  15     mode => 0755, | 
 |  16     require => Package['nginx'] | 
 |  17   } | 
 |  18  | 
 |  19   file {'/var/www/update': | 
 |  20     ensure => directory, | 
 |  21     mode => 0755 | 
 |  22   } | 
 |  23  | 
 |  24   file {'/var/www/update/adblockplusie': | 
 |  25     ensure => directory, | 
 |  26     mode => 0755 | 
 |  27   } | 
 |  28  | 
 |  29   file {'/var/www/update/adblockplusie/update.json': | 
 |  30     ensure => file, | 
 |  31     source => 'puppet:///modules/updateserver/adblockplusie/update.json', | 
 |  32     mode => 0644 | 
 |  33   } | 
 |  34  | 
 |  35   file {'/etc/nginx/sites-available/adblockplus.org_sslcert.key': | 
 |  36     ensure => file, | 
 |  37     notify => Service['nginx'], | 
 |  38     before => Nginx::Hostconfig['update.adblockplus.org'], | 
 |  39     mode => 0400, | 
 |  40     source => 'puppet:///modules/private/adblockplus.org_sslcert.key' | 
 |  41   } | 
 |  42  | 
 |  43   file {'/etc/nginx/sites-available/adblockplus.org_sslcert.pem': | 
 |  44     ensure => file, | 
 |  45     notify => Service['nginx'], | 
 |  46     before => Nginx::Hostconfig['update.adblockplus.org'], | 
 |  47     mode => 0400, | 
 |  48     source => 'puppet:///modules/private/adblockplus.org_sslcert.pem' | 
 |  49   } | 
 |  50  | 
 |  51   nginx::hostconfig{'update.adblockplus.org': | 
 |  52     source => 'puppet:///modules/updateserver/update.adblockplus.org', | 
 |  53     enabled => true | 
 |  54   } | 
 |  55  | 
 |  56   file {'/etc/logrotate.d/nginx_update.adblockplus.org': | 
 |  57     ensure => file, | 
 |  58     mode => 0444, | 
 |  59     require => Nginx::Hostconfig['update.adblockplus.org'], | 
 |  60     source => 'puppet:///modules/updateserver/logrotate' | 
 |  61   } | 
 |  62 } | 
| OLD | NEW |