* RHEL7 requires epel for many dependencies.
* The default RDO URL also switched to an icehouse version.
* RHEL6 RDO repo also will be configured for RHEL7, but the
configuration variable name remains RHEL6_RDO_REPO_RPM for compatibility
reasons.
Change-Id: I414c0f5357bf24c8d5657ea8231515461862e734
| ... | ... |
@@ -215,21 +215,24 @@ if [[ "$os_VENDOR" =~ (Debian) ]]; then |
| 215 | 215 |
apt_get install --force-yes gplhost-archive-keyring |
| 216 | 216 |
fi |
| 217 | 217 |
|
| 218 |
-if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then |
|
| 219 |
- # Installing Open vSwitch on RHEL6 requires enabling the RDO repo. |
|
| 220 |
- RHEL6_RDO_REPO_RPM=${RHEL6_RDO_REPO_RPM:-"http://rdo.fedorapeople.org/openstack-havana/rdo-release-havana.rpm"}
|
|
| 221 |
- RHEL6_RDO_REPO_ID=${RHEL6_RDO_REPO_ID:-"openstack-havana"}
|
|
| 218 |
+if [[ is_fedora && $DISTRO =~ (rhel) ]]; then |
|
| 219 |
+ # Installing Open vSwitch on RHEL requires enabling the RDO repo. |
|
| 220 |
+ RHEL6_RDO_REPO_RPM=${RHEL6_RDO_REPO_RPM:-"http://rdo.fedorapeople.org/openstack-icehouse/rdo-release-icehouse.rpm"}
|
|
| 221 |
+ RHEL6_RDO_REPO_ID=${RHEL6_RDO_REPO_ID:-"openstack-icehouse"}
|
|
| 222 | 222 |
if ! sudo yum repolist enabled $RHEL6_RDO_REPO_ID | grep -q $RHEL6_RDO_REPO_ID; then |
| 223 | 223 |
echo "RDO repo not detected; installing" |
| 224 | 224 |
yum_install $RHEL6_RDO_REPO_RPM || \ |
| 225 | 225 |
die $LINENO "Error installing RDO repo, cannot continue" |
| 226 | 226 |
fi |
| 227 |
- |
|
| 228 |
- # RHEL6 requires EPEL for many Open Stack dependencies |
|
| 229 |
- RHEL6_EPEL_RPM=${RHEL6_EPEL_RPM:-"http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"}
|
|
| 227 |
+ # RHEL requires EPEL for many Open Stack dependencies |
|
| 228 |
+ if [[ $DISTRO =~ (rhel7) ]]; then |
|
| 229 |
+ EPEL_RPM=${RHEL7_EPEL_RPM:-"http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.1.noarch.rpm"}
|
|
| 230 |
+ else |
|
| 231 |
+ EPEL_RPM=${RHEL6_EPEL_RPM:-"http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"}
|
|
| 232 |
+ fi |
|
| 230 | 233 |
if ! sudo yum repolist enabled epel | grep -q 'epel'; then |
| 231 | 234 |
echo "EPEL not detected; installing" |
| 232 |
- yum_install ${RHEL6_EPEL_RPM} || \
|
|
| 235 |
+ yum_install ${EPEL_RPM} || \
|
|
| 233 | 236 |
die $LINENO "Error installing EPEL repo, cannot continue" |
| 234 | 237 |
fi |
| 235 | 238 |
|