mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 03:23:08 +08:00
Add vacuum of package table to koschei cron
This commit is contained in:
@@ -1 +0,0 @@
|
||||
0 4 * * * koschei koschei-admin cleanup --older-than 6
|
||||
@@ -103,9 +103,7 @@
|
||||
- selinux
|
||||
|
||||
- name: Copy the cleanup cronjob
|
||||
copy: src="{{item}}" dest="/etc/cron.d/{{item}}"
|
||||
with_items:
|
||||
- cron-db-cleanup
|
||||
template: src=cron-db-cleanup.j2 dest=/etc/cron.d/cron-db-cleanup
|
||||
tags:
|
||||
- koschei
|
||||
|
||||
|
||||
2
roles/koschei/templates/cron-db-cleanup.j2
Normal file
2
roles/koschei/templates/cron-db-cleanup.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
0 3 * * * koschei koschei-admin cleanup --older-than 6
|
||||
0 4 * * * koschei psql -h {{ koschei_pgsql_hostname }} -d koschei -U koscheiadmin -c 'VACUUM FULL ANALYZE package;'
|
||||
Reference in New Issue
Block a user