add osbs old build cleanup for openshift cluster
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
3631ca6589
commit
066000e23b
2 changed files with 10 additions and 0 deletions
4
files/osbs/cleanup-old-osbs-builds
Normal file
4
files/osbs/cleanup-old-osbs-builds
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
SHELL=/bin/bash
|
||||||
|
MAILTO=maxamillion@fedoraproject.org
|
||||||
|
|
||||||
|
0 0 * * * root oadm prune builds --orphans --keep-younger-than=720h0m0s --confirm
|
|
@ -391,6 +391,12 @@
|
||||||
dest: "{{ koji_ca_cert_path }}"
|
dest: "{{ koji_ca_cert_path }}"
|
||||||
notify: oc secrets new
|
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
|
- name: post-install osbs tasks
|
||||||
hosts: osbs-masters-stg:osbs-nodes-stg
|
hosts: osbs-masters-stg:osbs-nodes-stg
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue