]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Disable timeout on tmp{watch,reaper} 1758/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 4 Mar 2021 13:45:14 +0000 (08:45 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 4 Mar 2021 13:45:14 +0000 (08:45 -0500)
From the man page:

```
       -T x, --runtime=x
              Execution of tmpreaper will aborted after x seconds; this is to prevent attacks that create many, many files.  By default the timeout is set to 55 seconds.  A value of 0 will disable this feature, which is not advised as this feature prevents possible
              race-conditions between different instances of tmpreaper.
```

So tmpreaper wasn't running for the past week since I set this up because there was so much to clean up that it'd time out.  These are Jenkins builders where the primary user already has sudo access so there's no real use to locking down tmpreaper.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave.yml

index 6c7580f3b24a2cc9ddfee00345afe9e079359b19..8c71c8c16a673e1c630bc28368015b89fc1b6e96 100644 (file)
           cron:
             name: "Delete /tmp files that have not been accessed in 30 days"
             special_time: daily
-            job: "{{ tmp_cleaner_name }} 30d /tmp/"
+            job: "{{ tmp_cleaner_name }} --runtime=0 30d /tmp/"
       when: permanent|bool
       tags: tmp