Merge "switch over to os-loganalyze on logs.o.o"

This commit is contained in:
Jenkins 2013-10-14 20:04:31 +00:00 committed by Gerrit Code Review
commit 2ec6207a31
3 changed files with 22 additions and 4 deletions

View File

@ -106,6 +106,22 @@ class openstack_project::static (
require => File['/srv/static/logs'],
}
vcsrepo { '/opt/os-loganalyze':
ensure => latest,
provider => git,
revision => 'master',
source => 'https://git.openstack.org/openstack-infra/os-loganalyze',
}
exec { 'install_os-loganalyze':
command => 'python setup.py install',
cwd => '/opt/os-loganalyze',
path => '/bin:/usr/bin',
refreshonly => true,
subscribe => Vcsrepo['/opt/os-loganalyze'],
}
# NOTE(sdague): soon to be deprecated
file { '/usr/local/bin/htmlify-screen-log.py':
ensure => present,
owner => 'root',

View File

@ -58,9 +58,10 @@ NameVirtualHost <%= vhost_name %>:<%= port %>
</Directory>
RewriteEngine On
# rewrite all txt.gz files to map to our internal htmlify wsgi app
# rewrite all txt.gz & html.gz files to map to our internal htmlify wsgi app
RewriteRule ^/(.*\.txt\.gz)$ /htmlify/$1 [QSA,L,PT]
WSGIScriptAlias /htmlify /usr/local/bin/htmlify-screen-log.py
RewriteRule ^/(.*\.html\.gz)$ /htmlify/$1 [QSA,L,PT]
WSGIScriptAlias /htmlify /usr/local/lib/python2.7/dist-packages/os_loganalyze/wsgi.py
ErrorLog /var/log/apache2/<%= name %>_error.log
LogLevel warn

View File

@ -58,9 +58,10 @@ NameVirtualHost <%= vhost_name %>:<%= port %>
</Directory>
RewriteEngine On
# rewrite all txt.gz files to map to our internal htmlify wsgi app
# rewrite all txt.gz & html.gz files to map to our internal htmlify wsgi app
RewriteRule ^/(.*\.txt\.gz)$ /htmlify/$1 [QSA,L,PT]
WSGIScriptAlias /htmlify /usr/local/bin/htmlify-screen-log.py
RewriteRule ^/(.*\.html\.gz)$ /htmlify/$1 [QSA,L,PT]
WSGIScriptAlias /htmlify /usr/local/lib/python2.7/dist-packages/os_loganalyze/wsgi.py
ErrorLog /var/log/apache2/<%= name %>_error.log
LogLevel warn