From fcd58cce96c207b0b2c3431791a41850b264a34a Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 20 Apr 2022 10:10:59 -0700 Subject: [PATCH] Remove isos and other images from rpm mirroring We build our own images from scratch using yum/dnf and don't rely on the isolinux/ or images/ content. Clean this up from our mirrors to reduce their size and time to sync. Change-Id: Ifa47c8ae1f3a080e69e4c00b0c2ef38f4094e1a2 --- playbooks/roles/mirror-update/files/centos-mirror-update | 4 ++++ .../roles/mirror-update/files/centos-stream-mirror-update | 2 ++ playbooks/roles/mirror-update/files/fedora-mirror-update | 3 +++ playbooks/roles/mirror-update/files/openeuler-mirror-update | 2 ++ 4 files changed, 11 insertions(+) diff --git a/playbooks/roles/mirror-update/files/centos-mirror-update b/playbooks/roles/mirror-update/files/centos-mirror-update index 4c5d078c76..3bb41de0df 100755 --- a/playbooks/roles/mirror-update/files/centos-mirror-update +++ b/playbooks/roles/mirror-update/files/centos-mirror-update @@ -59,6 +59,8 @@ $K5START ${RSYNC} \ --delete \ --delete-excluded \ --exclude="isos" \ + --exclude="images/" \ + --exclude="isolinux/" \ --exclude="ppc64le*" \ --exclude=".*" \ $MIRROR $BASE/8-stream @@ -88,6 +90,8 @@ for REPO in $REPOS; do --exclude="experimental" \ --exclude="fasttrack" \ --exclude="isos" \ + --exclude="images/" \ + --exclude="isolinux/" \ --exclude="paas" \ --exclude="*/drpms" \ $EXTRA_OPTS \ diff --git a/playbooks/roles/mirror-update/files/centos-stream-mirror-update b/playbooks/roles/mirror-update/files/centos-stream-mirror-update index 915386c42e..4e9de7fa2b 100755 --- a/playbooks/roles/mirror-update/files/centos-stream-mirror-update +++ b/playbooks/roles/mirror-update/files/centos-stream-mirror-update @@ -50,6 +50,8 @@ $K5START ${RSYNC} \ --delete \ --delete-excluded \ --exclude="iso" \ + --exclude="images/" \ + --exclude="isolinux/" \ --exclude="debug" \ --exclude="s390x" \ --exclude="source" \ diff --git a/playbooks/roles/mirror-update/files/fedora-mirror-update b/playbooks/roles/mirror-update/files/fedora-mirror-update index 69582e4a06..4778438a46 100755 --- a/playbooks/roles/mirror-update/files/fedora-mirror-update +++ b/playbooks/roles/mirror-update/files/fedora-mirror-update @@ -48,6 +48,9 @@ for REPO in releases/35 development/rawhide; do $K5START rsync -rltvz \ --delete \ --delete-excluded \ + --exclude="iso/" \ + --exclude="images/" \ + --exclude="isolinux/" \ --exclude="Cloud/x86_64/images/*.box" \ --exclude="CloudImages/x86_64/images/*.box" \ --exclude="Container" \ diff --git a/playbooks/roles/mirror-update/files/openeuler-mirror-update b/playbooks/roles/mirror-update/files/openeuler-mirror-update index 3d4832a125..302b1a2acc 100755 --- a/playbooks/roles/mirror-update/files/openeuler-mirror-update +++ b/playbooks/roles/mirror-update/files/openeuler-mirror-update @@ -47,6 +47,8 @@ for REPO in $REPOS; do --delete \ --delete-excluded \ --exclude="ISO/" \ + --exclude="images/" \ + --exclude="isolinux/" \ --exclude="debuginfo/" \ --exclude="docker_img/" \ --exclude="raspi_img" \