From: David Galloway Date: Mon, 14 Aug 2017 14:15:48 +0000 (-0400) Subject: public_facing: Delete rsync dotfiles on d.c.c X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fwip-delete-dotfiles;p=ceph-cm-ansible.git public_facing: Delete rsync dotfiles on d.c.c rsync dotfiles are causing rsync errors when our d.c.c mirrors are rsyncing new packages Signed-off-by: David Galloway --- diff --git a/roles/public_facing/tasks/download.ceph.com.yml b/roles/public_facing/tasks/download.ceph.com.yml index a00d00dc..34afc1f1 100644 --- a/roles/public_facing/tasks/download.ceph.com.yml +++ b/roles/public_facing/tasks/download.ceph.com.yml @@ -68,4 +68,15 @@ 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