[PATCH] add in releng cron job for pruning ostree commits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will call prune-atomic-ostree-repos.py from releng repo.
See https://pagure.io/releng/pull-request/7366

Signed-off-by: Dusty Mabe <dusty@xxxxxxxxxxxxx>
---
 roles/releng/files/atomic-ostree-prune-cron | 3 +++
 roles/releng/tasks/main.yml                 | 4 ++++
 2 files changed, 7 insertions(+)
 create mode 100644 roles/releng/files/atomic-ostree-prune-cron

diff --git a/roles/releng/files/atomic-ostree-prune-cron b/roles/releng/files/atomic-ostree-prune-cron
new file mode 100644
index 000000000..d0b048a85
--- /dev/null
+++ b/roles/releng/files/atomic-ostree-prune-cron
@@ -0,0 +1,3 @@
+# Prune Atomic Ostree Repos
+MAILTO=releng-cron@xxxxxxxxxxxxxxxxxxxxxxx
+30 1 * * * root TMPDIR=`mktemp -d /tmp/pruneostree.XXXXXX` && pushd $TMPDIR && git clone https://pagure.io/releng.git && cd releng/scripts && ./prune-atomic-ostree-repos.py && popd && rm -rf $TMPDIR
diff --git a/roles/releng/tasks/main.yml b/roles/releng/tasks/main.yml
index 6a8d81e79..ce7a2a4a0 100644
--- a/roles/releng/tasks/main.yml
+++ b/roles/releng/tasks/main.yml
@@ -172,6 +172,10 @@
   copy: src="purge-amis" dest=/etc/cron.d/purge-amis
   when: inventory_hostname.startswith('compose-x86-01')
 
+# put cron job in for pruning atomic ostree repos
+- name: prune atomic ostree repos
+  copy: src="atomic-ostree-prune-cron" dest=/etc/cron.d/atomic-ostree-prune-cron
+  when: inventory_hostname.startswith('compose-x86-01')
 
 - name: install compose /etc/httpd/conf.d/compose.conf file
   copy: >
-- 
2.14.3
_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux