add osbs old build cleanup for openshift cluster

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2016-11-07 20:26:17 +00:00
parent 3631ca6589
commit 066000e23b
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,4 @@
SHELL=/bin/bash
MAILTO=maxamillion@fedoraproject.org
0 0 * * * root oadm prune builds --orphans --keep-younger-than=720h0m0s --confirm

View file

@ -391,6 +391,12 @@
dest: "{{ koji_ca_cert_path }}"
notify: oc secrets new
- name: cron entry to clean up old builds
copy:
src: "{{files}}/osbs/cleanup-old-osbs-builds"
dest: "/etc/cron.d/cleanup-old-osbs-builds"
- name: post-install osbs tasks
hosts: osbs-masters-stg:osbs-nodes-stg
tags: