Make crawler log files available via http
To enable the mirror admins to consult the last output of the MM2 crawler, this makes the logs available via http. This still needs the corresponding forwards on the reverse proxy.
This commit is contained in:
parent
e232a4ce50
commit
1d5d0f99cb
2 changed files with 23 additions and 0 deletions
13
roles/mirrormanager/crawler/files/mirrormanager.conf
Normal file
13
roles/mirrormanager/crawler/files/mirrormanager.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
Alias /mirrormanager/crawler /var/log/mirrormanager/crawler
|
||||
|
||||
<Directory /var/log/mirrormanager/crawler>
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require all granted
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
# Apache 2.2
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</IfModule>
|
||||
</Directory>
|
|
@ -9,6 +9,7 @@
|
|||
- name: install needed packages
|
||||
yum: pkg={{ item }} state=present
|
||||
with_items:
|
||||
- httpd
|
||||
- mirrormanager2-crawler
|
||||
- python-psycopg2
|
||||
- fedmsg
|
||||
|
@ -30,3 +31,12 @@
|
|||
copy: src=crawler.cron dest=/etc/cron.d/mm2_crawler.cron
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: install configuration file
|
||||
template: src={{ roles }}/mirrormanager/crawler/files/mirrormanager.conf
|
||||
dest=/etc/httpd/conf.d/mirrormanager.conf
|
||||
owner=apache group=apache mode=0600
|
||||
notify:
|
||||
- restart httpd
|
||||
tags:
|
||||
- config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue