zuul-web: move LogFormat combined-cache into config

These two values overwrite each other, move into common configuration.

The "cache-status" is a verbose string, so quote it.

Change-Id: I3cc4627de3d6a0de1adcfed6b424fc3ed0099245
This commit is contained in:
Ian Wienand 2020-09-14 11:14:28 +10:00
parent 8c599a5bd0
commit 0177b40618
4 changed files with 12 additions and 8 deletions

View File

@ -0,0 +1,2 @@
LogFormat "%h %l %u [%{%F %T}t.%{msec_frac}t] \"%r\" %>s %b \"%{cache-status}e\" \"%{Referer}i\" \"%{User-agent}i\"" combined-cache

View File

@ -29,6 +29,16 @@
- 50-zuul.openstack.org.conf
- 50-zuul.openstack.org-http.conf
- name: Copy common log configuration
copy:
src: log-combined-cache.conf
dest: /etc/apache2/conf-available
register: _log_combined_cache
- name: Enable combined cache log config
command: a2enconf log-combined-cache
when: _log_combined_cache.changed
- name: Copy apache config
template:
src: zuul.vhost.j2

View File

@ -1,7 +1,3 @@
{% raw %}
LogFormat "%h %l %u [%{%F %T}t.%{msec_frac}t] \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-agent}i\"" combined-cache
{% endraw %}
<VirtualHost *:80>
ServerName zuul.openstack.org
ServerAdmin webmaster@openstack.org

View File

@ -1,7 +1,3 @@
{% raw %}
LogFormat "%h %l %u [%{%F %T}t.%{msec_frac}t] \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-agent}i\"" combined-cache
{% endraw %}
<VirtualHost *:80>
ServerName zuul.opendev.org
ServerAdmin webmaster@openstack.org