Add vacuum of package table to koschei cron

This commit is contained in:
Michael Simacek 2015-07-07 13:02:49 +00:00
parent 7dd770d84a
commit 92679459d4
3 changed files with 3 additions and 4 deletions

View file

@ -1 +0,0 @@
0 4 * * * koschei koschei-admin cleanup --older-than 6

View file

@ -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

View 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;'