+++ /dev/null
-## !/bin/bash
-#raw
-
-#-----------------------------------------------------------
-get_repos_el7() {
-
- echo -e "\e[0Ksection_start:$( date +%s ):ks_get_repos_el7[collapsed=true]\r\e[0KGet yum repository files ..."
- echo
- echo "${HASH_LINE}"
- echo "Calling get_repos_el7() ..."
- echo
- local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/el7"
-
- local -a repos=('epel' 'icinga' 'pixelpark' 'prometheus' 'puppet' 'wazuh')
-
- local repo=
- local url=
- local tmp_file=
- for repo in "${repos[@]}" ; do
- echo "Ensuring repo '${repo}.repo'..."
- url="${base_url}/${repo}.repo"
- tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
- if [[ -s "${tmp_file}" ]] ; then
- mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
- fi
- rm -fv "${tmp_file}"
- done
-
- echo -e "\e[0Ksection_end:$( date +%s ):ks_get_repos_el7\r\e[0K"
-}
-get_repos_el7
-
-#end raw
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+get_repos_el7() {
+
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_get_repos_el7[collapsed=true]\r\e[0KGet yum repository files ..."
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling get_repos_el7() ..."
+ echo
+ local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/el7"
+
+ local -a repos=('epel' 'icinga' 'pixelpark' 'prometheus' 'puppet' 'wazuh')
+
+ local repo=
+ local url=
+ local tmp_file=
+ for repo in "${repos[@]}" ; do
+ echo "Ensuring repo '${repo}.repo'..."
+ url="${base_url}/${repo}.repo"
+ tmp_file=$( mktemp )
+ wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ if [[ -s "${tmp_file}" ]] ; then
+ mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
+ fi
+ rm -fv "${tmp_file}"
+ done
+
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_get_repos_el7\r\e[0K"
+}
+get_repos_el7
+
+#end raw
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+get_repos_almalinux8() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling get_repos_repos_almalinux8() ..."
+ echo
+ local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/alma8"
+
+ local -a repos=('almalinux' 'almalinux-ha' 'almalinux-nft' 'almalinux-plus')
+ repos+=('almalinux-powertools' 'almalinux-resilientstorage' 'almalinux-rt')
+
+ local repo=
+ local url=
+ local tmp_file=
+ for repo in "${repos[@]}" ; do
+ echo "Ensuring repo '${repo}.repo'..."
+ url="${base_url}/${repo}.repo"
+ tmp_file=$( mktemp )
+ wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ if [[ -s "${tmp_file}" ]] ; then
+ mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
+ fi
+ rm -fv "${tmp_file}"
+ done
+
+}
+get_repos_almalinux8
+
+#end raw
echo
local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/centos8"
- local -a repos=('CentOS-AppStream' 'CentOS-Base' 'CentOS-centosplus' 'CentOS-CR' 'CentOS-Devel')
- repos+=('CentOS-Extras' 'CentOS-fasttrack' 'CentOS-HA' 'CentOS-PowerTools')
+ local -a repos=('CentOS-Stream-AppStream' 'CentOS-Stream-BaseOS' 'CentOS-Stream-Extras-common' 'CentOS-Stream-Extras')
+ repos+=('CentOS-Stream-HighAvailability' 'CentOS-Stream-NFV' 'CentOS-Stream-PowerTools' 'CentOS-Stream-ResilientStorage')
local repo=
local url=
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+get_repos_rocky8() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling get_repos_rocky8() ..."
+ echo
+ local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/rocky8"
+
+ local -a repos=('Rocky-AppStream' 'Rocky-BaseOS' 'Rocky-Extras' 'Rocky-HighAvailability')
+ repos+=('Rocky-NFV' 'Rocky-Plus' 'Rocky-PowerTools' 'Rocky-ResilientStorage' 'Rocky-RT')
+
+ local repo=
+ local url=
+ local tmp_file=
+ for repo in "${repos[@]}" ; do
+ echo "Ensuring repo '${repo}.repo'..."
+ url="${base_url}/${repo}.repo"
+ tmp_file=$( mktemp )
+ wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ if [[ -s "${tmp_file}" ]] ; then
+ mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
+ fi
+ rm -fv "${tmp_file}"
+ done
+
+}
+get_repos_rocky8
+
+#end raw
+++ /dev/null
-## !/bin/bash
-#raw
-
-#-----------------------------------------------------------
-get_repos_el8() {
-
- echo
- echo "${HASH_LINE}"
- echo "Calling get_repos_el8() ..."
- echo
- local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/el8"
-
- local -a repos=('epel' 'icinga' 'pixelpark' 'prometheus' 'puppet')
-
- local repo=
- local url=
- local tmp_file=
- for repo in "${repos[@]}" ; do
- echo "Ensuring repo '${repo}.repo'..."
- url="${base_url}/${repo}.repo"
- tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
- if [[ -s "${tmp_file}" ]] ; then
- mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
- fi
- rm -fv "${tmp_file}"
- done
-
-}
-get_repos_el8
-
-#end raw
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+get_repos_el8() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling get_repos_el8() ..."
+ echo
+ local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/el8"
+
+ local -a repos=('epel' 'icinga' 'pixelpark' 'prometheus' 'puppet')
+
+ local repo=
+ local url=
+ local tmp_file=
+ for repo in "${repos[@]}" ; do
+ echo "Ensuring repo '${repo}.repo'..."
+ url="${base_url}/${repo}.repo"
+ tmp_file=$( mktemp )
+ wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ if [[ -s "${tmp_file}" ]] ; then
+ mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
+ fi
+ rm -fv "${tmp_file}"
+ done
+
+}
+get_repos_el8
+
+#end raw
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+get_repos_almalinux9() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling get_repos_repos_almalinux9() ..."
+ echo
+ local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/alma9"
+
+ local -a repos=('almalinux-appstream' 'almalinux-baseos' 'almalinux-crb' 'almalinux-extras' )
+ repos+=('almalinux-highavailability' 'almalinux-nfv' 'almalinux-plus')
+ repos+=('almalinux-resilientstorage' 'almalinux-rt' 'almalinux-sap' 'almalinux-saphana')
+
+ local repo=
+ local url=
+ local tmp_file=
+ for repo in "${repos[@]}" ; do
+ echo "Ensuring repo '${repo}.repo'..."
+ url="${base_url}/${repo}.repo"
+ tmp_file=$( mktemp )
+ wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ if [[ -s "${tmp_file}" ]] ; then
+ mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
+ fi
+ rm -fv "${tmp_file}"
+ done
+
+}
+get_repos_almalinux9
+
+#end raw
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+get_repos_centos9() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling get_repos_centos9() ..."
+ echo
+ local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/centos9"
+
+ local -a repos=('centos' 'centos-addons')
+
+ local repo=
+ local url=
+ local tmp_file=
+ for repo in "${repos[@]}" ; do
+ echo "Ensuring repo '${repo}.repo'..."
+ url="${base_url}/${repo}.repo"
+ tmp_file=$( mktemp )
+ wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ if [[ -s "${tmp_file}" ]] ; then
+ mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
+ fi
+ rm -fv "${tmp_file}"
+ done
+
+}
+get_repos_centos9
+
+#end raw