Export the repo info as JSON every two hours
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
c444bb0a61
commit
d0ae5f84a7
1 changed files with 12 additions and 0 deletions
|
@ -213,6 +213,18 @@
|
||||||
- config
|
- config
|
||||||
- distgit
|
- 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 --------------------------------------------
|
# -- Gitolite --------------------------------------------
|
||||||
# This is the permission management for package maintainers, using Gitolite.
|
# This is the permission management for package maintainers, using Gitolite.
|
||||||
- name: create the /var/log/gitolite directory
|
- name: create the /var/log/gitolite directory
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue