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/', |