OLD | NEW |
1 class notificationserver($is_default = false) { | 1 class notificationserver($is_default = false) { |
2 if !defined(Class['nginx']) { | 2 if !defined(Class['nginx']) { |
3 class {'nginx': | 3 class {'nginx': |
4 worker_connections => 4000, | 4 worker_connections => 4000, |
5 ssl_session_cache => off, | 5 ssl_session_cache => off, |
6 } | 6 } |
7 } | 7 } |
8 | 8 |
9 class {'sitescripts': | 9 class {'sitescripts': |
10 sitescriptsini_source => 'puppet:///modules/notificationserver/sitescripts.i
ni' | 10 sitescriptsini_source => 'puppet:///modules/notificationserver/sitescripts.i
ni' |
(...skipping 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 include spawn-fcgi | 31 include spawn-fcgi |
32 package {'python-flup':} | 32 package {'python-flup':} |
33 | 33 |
34 spawn-fcgi::pool {'multiplexer': | 34 spawn-fcgi::pool {'multiplexer': |
35 ensure => present, | 35 ensure => present, |
36 fcgi_app => '/opt/sitescripts/multiplexer.fcgi', | 36 fcgi_app => '/opt/sitescripts/multiplexer.fcgi', |
37 socket => '/tmp/multiplexer-fastcgi.sock', | 37 socket => '/tmp/multiplexer-fastcgi.sock', |
38 mode => '0666', | 38 mode => '0666', |
| 39 order => 500, |
39 user => 'nginx', | 40 user => 'nginx', |
40 children => 1, | 41 children => 1, |
41 require => [ | 42 require => [ |
42 Exec['fetch_sitescripts'], | 43 Exec['fetch_sitescripts'], |
43 Exec['fetch_notifications'], | 44 Exec['fetch_notifications'], |
44 Package['python-flup'] | 45 Package['python-flup'] |
45 ] | 46 ] |
46 } | 47 } |
47 | 48 |
48 File { | 49 File { |
49 owner => root, | 50 owner => root, |
50 group => root, | 51 group => root, |
51 mode => 0644, | 52 mode => 0644, |
52 } | 53 } |
53 | 54 |
54 nginx::hostconfig{'notification.adblockplus.org': | 55 nginx::hostconfig{'notification.adblockplus.org': |
55 source => 'puppet:///modules/notificationserver/site.conf', | 56 source => 'puppet:///modules/notificationserver/site.conf', |
56 global_config => template('notificationserver/global.conf.erb'), | 57 global_config => template('notificationserver/global.conf.erb'), |
57 is_default => $is_default, | 58 is_default => $is_default, |
58 certificate => 'easylist-downloads.adblockplus.org_sslcert.pem', | 59 certificate => 'easylist-downloads.adblockplus.org_sslcert.pem', |
59 private_key => 'easylist-downloads.adblockplus.org_sslcert.key', | 60 private_key => 'easylist-downloads.adblockplus.org_sslcert.key', |
60 log => 'access_log_notification', | 61 log => 'access_log_notification', |
61 log_format => 'notification', | 62 log_format => 'notification', |
62 } | 63 } |
63 } | 64 } |
OLD | NEW |