Merge "Add support for running Zuul on Trusty"

This commit is contained in:
Jenkins 2015-01-16 17:22:49 +00:00 committed by Gerrit Code Review
commit c69fe6c62a
2 changed files with 25 additions and 3 deletions

View File

@ -347,9 +347,22 @@ class zuul (
ensure => present,
}
}
if ! defined(A2mod['mem_cache']) {
a2mod { 'mem_cache':
ensure => present,
case $::lsbdistcodename {
'precise': {
if ! defined(A2mod['mem_cache']) {
a2mod { 'mem_cache':
ensure => present,
}
}
}
default: {
if ! defined(A2mod['cache_disk']) {
a2mod { 'cache_disk':
ensure => present,
}
}
}
}
}

View File

@ -2,6 +2,11 @@
ServerAdmin <%= scope.lookupvar("::zuul::serveradmin") %>
DocumentRoot /var/lib/zuul/www
<Directory /var/lib/zuul/www>
Allow from all
Satisfy Any
</Directory>
ErrorLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::zuul::vhost_name") %>-error.log
LogLevel warn
@ -32,6 +37,10 @@
MCacheMaxObjectSize 8388608
MCacheMaxStreamingBuffer 8388608
</IfModule>
<IfModule mod_cache_disk.c>
CacheEnable disk /status.json
CacheRoot /var/cache/apache2/mod_cache_disk
</IfModule>
</IfModule>
</VirtualHost>