From 8fb9944ec0764cebe8ee7484ad2058b96b4e7f27 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 14 Aug 2017 10:15:48 -0400 Subject: [PATCH] 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 --- roles/public_facing/tasks/download.ceph.com.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.47.3