From d87c5ccb51c258e6a1f9c61e33053d5c0c25460e Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 15 Feb 2023 09:28:17 +0100 Subject: [PATCH] copr-be: decrease raid check frequency to "monthly" Planned on second Saturday every month. --- roles/copr/backend/tasks/mount_fs.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/copr/backend/tasks/mount_fs.yml b/roles/copr/backend/tasks/mount_fs.yml index 77023154a2..e7843699b0 100644 --- a/roles/copr/backend/tasks/mount_fs.yml +++ b/roles/copr/backend/tasks/mount_fs.yml @@ -46,6 +46,20 @@ debug: msg=checked failed_when: not stat_repo_fs.stat.exists +- name: decrease the RAID checks if in AWS + file: + path: /etc/systemd/system/raid-check.timer + content: | + [Unit] + Description=Monthly RAID health check in AWS + [Timer] + OnCalendar=Sat *-*-8..14 01:00:00 + tags: + - mdadm + - raid + - raid_check + when: datacenter == 'aws' + - name: prepare mount point file: state=directory path=/var/lib/copr/public_html