]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
public_facing: Delete rsync dotfiles on d.c.c wip-delete-dotfiles 328/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 14 Aug 2017 14:15:48 +0000 (10:15 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 4 Sep 2019 12:56:43 +0000 (08:56 -0400)
rsync dotfiles are causing rsync errors when our d.c.c mirrors are
rsyncing new packages

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/public_facing/tasks/download.ceph.com.yml

index a00d00dc162da01925fbcdc726aceca4ed97b5c2..34afc1f1431cc9d93fe7ef26cfa6cdda3e3645c9 100644 (file)
     minute: "0"
     job: "/usr/libexec/make_timestamp"
 
+# Occasionally rsync dot file get leftover either on the signer box or on d.c.c.
+# The dotfiles cause issues for d.c.c mirrors because the script just quits instead of skipping files it can't access.
+# https://www.spinics.net/lists/ceph-users/msg37976.html
+#
+# The -mmin +120 is so the cronjob doesn't delete files that are in the process of being rsynced (like during a release).
+- name: Cron entry for deleting rsync dotfiles
+  cron:
+    name: "Delete rsync dotfiles"
+    hour: "0"
+    job: 'find /data/download.ceph.com/www -type f -name ".[^.]*" -mmin +120 -delete'
+
 - import_tasks: letsencrypt_nginx.yml