Proxy config for gather-easyfix and fedmsg-crl.
This commit is contained in:
parent
7bb515f0d1
commit
237882207e
7 changed files with 90 additions and 2 deletions
1
roles/easyfix/proxy/files/sync-easyfix.cron
Normal file
1
roles/easyfix/proxy/files/sync-easyfix.cron
Normal file
|
@ -0,0 +1 @@
|
|||
5,35 * * * * root /usr/bin/rsync -a --delete sundries01::gather-easyfix/* /srv/web/gather-easyfix/ >& /dev/null
|
25
roles/easyfix/proxy/tasks/main.yml
Normal file
25
roles/easyfix/proxy/tasks/main.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
- name: Ensure dir for content exists
|
||||
file: dest=/srv/web/gather-easyfix owner=root group=root mode=0755 state=directory
|
||||
tags:
|
||||
- easyfix
|
||||
- easyfix/proxy
|
||||
|
||||
- name: Put the proxy config in place
|
||||
template: >
|
||||
src=gather-easyfix.conf
|
||||
dest=/etc/httpd/conf.d/{{website}}/gather-easyfix.conf
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart httpd
|
||||
tags:
|
||||
- easyfix
|
||||
- easyfix/proxy
|
||||
|
||||
- name: Install the sync-easyfix cronjob to pull content from gatherer
|
||||
copy: >
|
||||
src=sync-easyfix.cron dest=/etc/cron.d/sync-easyfix.cron
|
||||
owner=root group=root mode=0644
|
||||
tags:
|
||||
- cron
|
||||
- easyfix
|
||||
- easyfix/proxy
|
6
roles/easyfix/proxy/templates/gather-easyfix.conf
Normal file
6
roles/easyfix/proxy/templates/gather-easyfix.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
Alias {{path}} /srv/web/gather-easyfix
|
||||
|
||||
<Directory /srv/web/gather-easyfix>
|
||||
Options Indexes
|
||||
AllowOverride None
|
||||
</Directory>
|
Loading…
Add table
Add a link
Reference in a new issue