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

Unified Diff: modules/downloadserver/manifests/init.pp

Issue 5166800887087104: Issue 2572 - Run the Adblock Browser devbuild update handler on the download servers (Closed)
Patch Set: Created May 21, 2015, 11:14 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/downloadserver/files/sitescripts ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/downloadserver/manifests/init.pp
===================================================================
--- a/modules/downloadserver/manifests/init.pp
+++ b/modules/downloadserver/manifests/init.pp
@@ -11,6 +11,26 @@
ssl_session_cache => off,
}
+ class {'sitescripts':
+ sitescriptsini_source => 'puppet:///modules/downloadserver/sitescripts',
+ }
+
+ package {['python-flup', 'python-jinja2']:}
+ include spawn-fcgi
+
+ spawn-fcgi::pool {'multiplexer':
+ ensure => present,
+ fcgi_app => '/opt/sitescripts/multiplexer.fcgi',
+ socket => '/tmp/multiplexer-fastcgi.sock',
+ mode => '0666',
+ user => 'nginx',
+ children => 1,
+ require => [
+ Exec['fetch_sitescripts'],
+ Package['python-flup', 'python-jinja2'],
+ ],
+ }
+
user {'hg':
ensure => present,
comment => 'Mercurial client user',
@@ -47,6 +67,12 @@
log => 'access_log_downloads'
}
+ file {'/etc/nginx/conf.d/adblockbrowserupdatescache.conf':
+ source => 'puppet:///modules/downloadserver/adblockbrowserupdatescache.conf',
+ require => Package['nginx'],
+ notify => Service['nginx']
+ }
+
cron {'mirror':
ensure => present,
command => 'hg pull -q -u -R /var/www/downloads/',
« no previous file with comments | « modules/downloadserver/files/sitescripts ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld