From ce608d9a6459dc1d956b050350ec679fbc6b0cc6 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 10 Jan 2025 11:04:52 -0800 Subject: [PATCH] koji_hub / kojira: expire dist repos after 7 days We orig set this because we didn't want our infra repos to disappear after a week. However, I think now koji keeps latest repos forever, it is just the older ones that get expired. This should save a significat amount of disk space. Signed-off-by: Kevin Fenzi --- roles/koji_hub/templates/kojira.conf.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/koji_hub/templates/kojira.conf.j2 b/roles/koji_hub/templates/kojira.conf.j2 index 8196213c66..2f8e7b1244 100644 --- a/roles/koji_hub/templates/kojira.conf.j2 +++ b/roles/koji_hub/templates/kojira.conf.j2 @@ -34,9 +34,7 @@ serverca = /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem deleted_repo_lifetime = 259200 ;how soon (in seconds) to clean up dist repositories. -;we want this super long so we don't delete latest repos -;just set this to 6 months for now. -dist_repo_lifetime = 7257600 +dist_repo_lifetime = 604800 ; If True, monitor external repos and trigger the appropriate Koji repo ; regenerations when they change.