Skip to content

Commit

Permalink
Clean /tmp files older than 2 days on jenkins workers
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Nov 1, 2018
1 parent c640571 commit fd3deb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions env/galaxy/files/jenkins/tmpfiles.d-clean-tmp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# this overrides the entry in /usr/lib/tmpfiles.d/tmp.conf because this file is lexicographically before tmp.conf
D /tmp 1777 root root 2d

# this would be preferable but we need a newer version of tmpfiles.d for `e`
#e /tmp/ - - - 10d
2 changes: 2 additions & 0 deletions env/galaxy/group_vars/jenkinsslaves/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ jenkinsslaves_group_files:
dest: ~jenkins/.ssh/config
owner: jenkins
group: jenkins
- src: files/jenkins/tmpfiles.d-clean-tmp.conf
dest: /etc/tmpfiles.d/clean-tmp.conf

0 comments on commit fd3deb3

Please sign in to comment.