local url=
local tgt=
+ local bname=
+ local repo_file=
- mkdir -pv /etc/yum.repos.d
+ echo
+ echo "Backing up existing repo files -> /etc/yum.repos.d/.old ..."
+ mkdir -pv /etc/yum.repos.d/.old
+ for repo_file in /etc/yum.repos.d/*.repo ; do
+ if [[ ! -f "${repo_file}" ]] ; then
+ continue
+ fi
+ cp -pv "${repo_file}" /etc/yum.repos.d/.old
+ done
- for bname in epel.repo epel-testing.repo puppet.repo rpm-repo.pixelpark.com.repo ; do
+ for bname in public-yum-ol7.repo epel.repo epel-testing.repo puppet.repo rpm-repo.pixelpark.com.repo ; do
url="${COBBLER_URL}/custom/create-vmware-tpl/yum.repos/${bname}"
tgt="/etc/yum.repos.d/${bname}"
echo
chmod -v 0644 "${tgt}"
done
- #local url="${COBBLER_URL}/custom/epel/7/x86_64/epel-release-7-5.noarch.rpm"
- #echo "Using URL '${url}' ..."
-
- #yum install -y "${url}"
-
echo
log "Cleaning YUM cache ..."
yum clean all
--- /dev/null
+[ol7_latest]
+name=Oracle Linux $releasever Latest ($basearch)
+baseurl=https://repo.pixelpark.com/Linux/yum/OracleLinux/OL7/latest/$basearch/
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
+gpgcheck=1
+enabled=1
+
+[ol7_u0_base]
+name=Oracle Linux $releasever GA installation media copy ($basearch)
+baseurl=https://repo.pixelpark.com/Linux/yum/OracleLinux/OL7/0/base/$basearch/
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
+gpgcheck=1
+enabled=0
+