+++ /dev/null
-[epel]
-name=Extra Packages for Enterprise Linux 8 - $basearch
-baseurl=https://repo02.pixelpark.com/Linux/yum/epel/$releasever/Everything/$basearch/
-enabled=1
-gpgcheck=1
-repo_gpgcheck=0
-gpgkey=https://repo02.pixelpark.com/gpg/RPM-GPG-KEY-EPEL-8
-
-# vim: filetype=dosini
+++ /dev/null
-[icinga]
-name=ICINGA (stable release for epel)
-baseurl=https://repo02.pixelpark.com/Linux/yum/icinga/8
-enabled=1
-gpgcheck=1
-gpgkey=https://repo02.pixelpark.com/gpg/icinga2.gpg
-
-# vim: filetype=dosini
+++ /dev/null
-[pixelpark]
-name=pixelpark
-baseurl=https://repo02.pixelpark.com/Linux/yum/pixelpark/$releasever
-enabled=1
-gpgcheck=1
-gpgkey=https://repo02.pixelpark.com/gpg/pixelpark.gpg
-
-# vim: filetype=dosini
+++ /dev/null
-[prometheus]
-name=Prometheus Lest Repo
-baseurl=https://repo02.pixelpark.com/Linux/yum/prom/8/
-enabled=1
-gpgcheck=1
-gpgkey=https://repo02.pixelpark.com/gpg/prometheus.gpg
-
-# vim: filetype=dosini
+++ /dev/null
-# Puppet.repo
-[puppet]
-name=Puppet Repository el 8 - $basearch
-baseurl=https://repo02.pixelpark.com/Linux/yum/puppetlabs/puppet7/el/8/$basearch
-gpgkey=https://repo02.pixelpark.com/gpg/RPM-GPG-KEY-puppet-20250406
-enabled=1
-gpgcheck=1
-
-# vim: filetype=dosini
--- /dev/null
+[epel]
+name=Extra Packages for Enterprise Linux 8 - $basearch
+baseurl=https://repo02.pixelpark.com/Linux/yum/epel/$releasever/Everything/$basearch/
+enabled=1
+gpgcheck=1
+repo_gpgcheck=0
+gpgkey=https://repo02.pixelpark.com/gpg/RPM-GPG-KEY-EPEL-8
+
+# vim: filetype=dosini
--- /dev/null
+[icinga]
+name=ICINGA (stable release for epel)
+baseurl=https://repo02.pixelpark.com/Linux/yum/icinga/8
+enabled=1
+gpgcheck=1
+gpgkey=https://repo02.pixelpark.com/gpg/icinga2.gpg
+
+# vim: filetype=dosini
--- /dev/null
+[pixelpark]
+name=pixelpark
+baseurl=https://repo02.pixelpark.com/Linux/yum/pixelpark/$releasever
+enabled=1
+gpgcheck=1
+gpgkey=https://repo02.pixelpark.com/gpg/pixelpark.gpg
+
+# vim: filetype=dosini
--- /dev/null
+[prometheus]
+name=Prometheus Lest Repo
+baseurl=https://repo02.pixelpark.com/Linux/yum/prom/8/
+enabled=1
+gpgcheck=1
+gpgkey=https://repo02.pixelpark.com/gpg/prometheus.gpg
+
+# vim: filetype=dosini
--- /dev/null
+# Puppet.repo
+[puppet]
+name=Puppet Repository el 8 - $basearch
+baseurl=https://repo02.pixelpark.com/Linux/yum/puppetlabs/puppet7/el/8/$basearch
+gpgkey=https://repo02.pixelpark.com/gpg/RPM-GPG-KEY-puppet-20250406
+enabled=1
+gpgcheck=1
+
+# vim: filetype=dosini
echo "Using snippet $clear_repos_snippet"
$SNIPPET($clear_repos_snippet)
-#set $get_repos_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.180.repos_centos8.sh"
+#set $get_repos_centos_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.180.repos_centos8.sh"
echo
-echo "Using snippet $get_repos_snippet"
-$SNIPPET($get_repos_snippet)
+echo "Using snippet $get_repos_centos_snippet"
+$SNIPPET($get_repos_centos_snippet)
+
+#set $get_repos_el_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.181.repos_el8.sh"
+echo
+echo "Using snippet $get_repos_el_snippet"
+$SNIPPET($get_repos_el_snippet)
#set $init_repos_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.200.init-repos.sh"
echo
import time
-__version__ = '2.3.6'
+__version__ = '2.4.0'
# -------------------------------------------------------------------------
local -a repos=('CentOS-AppStream' 'CentOS-Base' 'CentOS-centosplus' 'CentOS-CR' 'CentOS-Devel')
repos+=('CentOS-Extras' 'CentOS-fasttrack' 'CentOS-HA' 'CentOS-PowerTools')
- repos+=('epel' 'icinga' 'pixelpark' 'prometheus' 'puppet')
local repo=
local url=
--- /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