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 22 matching lines...) Expand all Loading... |
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 order => 500, |
40 user => 'nginx', | 40 user => 'nginx', |
41 children => 1, | 41 children => 1, |
42 require => [ | 42 require => [ |
43 Exec['fetch_sitescripts'], | 43 Class['sitescripts'], |
44 Exec['fetch_notifications'], | 44 Exec['fetch_notifications'], |
45 Package['python-flup'] | 45 Package['python-flup'] |
46 ] | 46 ] |
47 } | 47 } |
48 | 48 |
49 customservice::supervisor {'spawn-fcgi': | 49 customservice::supervisor {'spawn-fcgi': |
50 pidfile => '/var/run/500-multiplexer_spawn-fcgi.pid', | 50 pidfile => '/var/run/500-multiplexer_spawn-fcgi.pid', |
51 } | 51 } |
52 | 52 |
53 File { | 53 File { |
54 owner => root, | 54 owner => root, |
55 group => root, | 55 group => root, |
56 mode => 0644, | 56 mode => 0644, |
57 } | 57 } |
58 | 58 |
59 nginx::hostconfig{'notification.adblockplus.org': | 59 nginx::hostconfig{'notification.adblockplus.org': |
60 source => 'puppet:///modules/notificationserver/site.conf', | 60 source => 'puppet:///modules/notificationserver/site.conf', |
61 global_config => template('notificationserver/global.conf.erb'), | 61 global_config => template('notificationserver/global.conf.erb'), |
62 is_default => $is_default, | 62 is_default => $is_default, |
63 certificate => 'easylist-downloads.adblockplus.org_sslcert.pem', | 63 certificate => 'easylist-downloads.adblockplus.org_sslcert.pem', |
64 private_key => 'easylist-downloads.adblockplus.org_sslcert.key', | 64 private_key => 'easylist-downloads.adblockplus.org_sslcert.key', |
65 log => 'access_log_notification', | 65 log => 'access_log_notification', |
66 log_format => 'notification', | 66 log_format => 'notification', |
67 } | 67 } |
68 } | 68 } |
OLD | NEW |