--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+get_repos_el9() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Calling get_repos_el9() ..."
+ echo
+ local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/el9"
+
+ local -a repos=('pixelpark' '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_el9
+
+#end raw