2014-01-14 17:45:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-03-29 03:28:22 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2014-01-14 17:45:41 +00:00
|
|
|
cat << EOF > /etc/yum.repos.d/rhel7.repo
|
|
|
|
[rhel7]
|
|
|
|
name=RHEL7
|
|
|
|
failovermethod=priority
|
|
|
|
baseurl=http://ftp.redhat.com/redhat/rhel/beta/7/x86_64/os/
|
|
|
|
enabled=1
|
|
|
|
metadata_expire=7d
|
|
|
|
gpgcheck=0
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat << EOF > /etc/yum.repos.d/epel.repo
|
|
|
|
[epel]
|
|
|
|
name=epel
|
|
|
|
failovermethod=priority
|
|
|
|
baseurl=http://download-i2.fedoraproject.org/pub/epel/beta/7/x86_64/
|
|
|
|
enabled=1
|
|
|
|
metadata_expire=7d
|
|
|
|
gpgcheck=0
|
|
|
|
EOF
|