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

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

Issue 29329131: Issue 123 - Integrate filterserver cron::envrionment with Hiera (Closed)
Patch Set: Created Oct. 14, 2015, 5:20 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 | « modules/filterserver/manifests/init.pp ('k') | no next file » | 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'
11 } 11 }
12 12
13 exec {'fetch_notifications': 13 exec {'fetch_notifications':
14 command => 'hg clone --noupdate https://hg.adblockplus.org/notifications /op t/notifications && chown -R nginx /opt/notifications', 14 command => 'hg clone --noupdate https://hg.adblockplus.org/notifications /op t/notifications && chown -R nginx /opt/notifications',
15 path => ['/usr/bin/', '/bin/'], 15 path => ['/usr/bin/', '/bin/'],
16 require => [ 16 require => [
17 Package['mercurial'], 17 Package['mercurial'],
18 User['nginx'], 18 User['nginx'],
19 ], 19 ],
20 onlyif => 'test ! -d /opt/notifications' 20 onlyif => 'test ! -d /opt/notifications'
21 } 21 }
22 22
23 cron {'update_notifications': 23 cron {'update_notifications':
24 command => 'hg pull -q -u -R /opt/notifications', 24 command => 'hg pull -q -u -R /opt/notifications',
25 environment => ['MAILTO=admins@adblockplus.org,root'], 25 environment => hiera('cron::environment', []),
26 minute => '*/5', 26 minute => '*/5',
27 user => 'nginx', 27 user => 'nginx',
28 require => Exec['fetch_notifications'], 28 require => Exec['fetch_notifications'],
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,
(...skipping 18 matching lines...) Expand all
54 nginx::hostconfig{'notification.adblockplus.org': 54 nginx::hostconfig{'notification.adblockplus.org':
55 source => 'puppet:///modules/notificationserver/site.conf', 55 source => 'puppet:///modules/notificationserver/site.conf',
56 global_config => template('notificationserver/global.conf.erb'), 56 global_config => template('notificationserver/global.conf.erb'),
57 is_default => $is_default, 57 is_default => $is_default,
58 certificate => 'easylist-downloads.adblockplus.org_sslcert.pem', 58 certificate => 'easylist-downloads.adblockplus.org_sslcert.pem',
59 private_key => 'easylist-downloads.adblockplus.org_sslcert.key', 59 private_key => 'easylist-downloads.adblockplus.org_sslcert.key',
60 log => 'access_log_notification', 60 log => 'access_log_notification',
61 log_format => 'notification', 61 log_format => 'notification',
62 } 62 }
63 } 63 }
OLDNEW
« no previous file with comments | « modules/filterserver/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld