Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/notificationserver/manifests/init.pp

Issue 29329307: Issue 3211 - Integrate customservice::supervisor with notification daemon (Closed)
Patch Set: Issue 3211 - Address feedback from codereview Created Oct. 21, 2015, 12:08 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/sitescripts/templates/keep_alive_services.erb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | modules/sitescripts/templates/keep_alive_services.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld