Export the repo info as JSON every two hours

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-02-12 11:58:50 +01:00
parent c444bb0a61
commit d0ae5f84a7

View file

@ -213,6 +213,18 @@
- config
- distgit
- name: dumps the state of the repos in JSON
cron:
name: "dumps the state of the repos in JSON"
job: "repospanner --config /etc/pagure/repospanner-admin.yml admin repo list --json | python -m json.tool > /srv/cache/extras/repoinfo.json"
hour: */2
minute: 5
state: present
when: env == "staging"
tags:
- config
- distgit
# -- Gitolite --------------------------------------------
# This is the permission management for package maintainers, using Gitolite.
- name: create the /var/log/gitolite directory