From 54ba6c2bdb5bf1d6656cef56580ae4e1c71159c7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 27 Aug 2024 16:53:05 +0200 Subject: [PATCH] repos/alma --- spcd/bootstrap.sh | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 7acfe6b..4013fbd 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -18,7 +18,7 @@ [ -n "${SPCD_REF_STAGING}" ] || SPCD_REF_STAGING="dev" [ -n "${SPCD_URL_ALMA}" ] || - SPCD_URL_ALMA="https://repo.almalinux.org/almalinux" + SPCD_URL_ALMA="https://repo.almalinux.org" [ -n "${SPCD_URL_ALPINE}" ] || SPCD_URL_ALPINE="https://dl-cdn.alpinelinux.org/alpine" [ -n "${SPCD_URL_ARCH}" ] || @@ -828,13 +828,40 @@ spcd_step__packages_set_repositories() { case "${SPCD_OS_ID}" in "${SPCD_OS_ALMA}") case "${SPCD_OS_VERSION}" in - "8") spcd_spr__file="/etc/yum.repos.d/almalinux.repo" ;; - "9") spcd_spr__file="/etc/yum.repos.d/almalinux-baseos.repo" ;; + "9") + set -- \ + "-appstream" \ + "-baseos" \ + "-crb" \ + "-extras" \ + "-highavailability" \ + "-nfv" \ + "-plus" \ + "-resilientstorage" \ + "-rt" \ + "-sap" \ + "-saphana" + ;; + "8") + set -- \ + "" \ + "-ha" \ + "-nfv" \ + "-plus" \ + "-powertools" \ + "-resilientstorage" \ + "-rt" \ + "-sap" \ + "-saphana" + ;; *) ;; esac - spcd_os_sed "${spcd_spr__file}" \ - "|^mirrorlist|# mirrorlist|" \ - "|^# baseurl|baseurl|" + for spcd_spr__file in "${@}"; do + spcd_os_sed "/etc/yum.repos.d/almalinux${spcd_spr__file}.repo" \ + "|^mirrorlist|# mirrorlist|" \ + "|https://repo.almalinux.org|${SPCD_URL_ALMA}|" \ + "|^# baseurl|baseurl|" + done ;; "${SPCD_OS_ALPINE}") spcd_os_write "/etc/apk/repositories" "\