From 58f5ee58e664a570e8f8c292be7845709c0d953d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sat, 26 Aug 2023 15:36:46 +0200 Subject: [PATCH] copr-be: scan just once a month It turns out that a drop-in created yet another OnCalendar event; so we actually checked disk arrays even more frequently with the drop-in. Let's override /usr/lib config with /etc (copy-paste with OnCalendar tweak). --- roles/copr/backend/tasks/mount_fs.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/roles/copr/backend/tasks/mount_fs.yml b/roles/copr/backend/tasks/mount_fs.yml index 1d6b89cb51..265cd63786 100644 --- a/roles/copr/backend/tasks/mount_fs.yml +++ b/roles/copr/backend/tasks/mount_fs.yml @@ -53,18 +53,20 @@ - raid_check when: datacenter == 'aws' block: - - name: create the drop-in directory for raid-check.timer - file: - path: /etc/systemd/system/raid-check.timer.d/ - state: directory - name: install the drop-in raid-check.timer override copy: - dest: /etc/systemd/system/raid-check.timer.d/05-aws.conf + dest: /etc/systemd/system/raid-check.timer content: | [Unit] Description=Monthly RAID health check in AWS + [Timer] OnCalendar=Sat *-*-8..14 01:00:00 + Persistent=true + AccuracySec=24h + + [Install] + WantedBy=timers.target notify: systemctl daemon-reload - name: prepare mount point