|
...
|
...
|
@@ -219,7 +219,7 @@ fi
|
|
219
|
219
|
# Some distros need to add repos beyond the defaults provided by the vendor
|
|
220
|
220
|
# to pick up required packages.
|
|
221
|
221
|
|
|
222
|
|
-if [[ is_fedora && $DISTRO =~ (rhel) ]]; then
|
|
|
222
|
+if [[ is_fedora && $DISTRO == "rhel6" ]]; then
|
|
223
|
223
|
# Installing Open vSwitch on RHEL requires enabling the RDO repo.
|
|
224
|
224
|
RHEL6_RDO_REPO_RPM=${RHEL6_RDO_REPO_RPM:-"http://rdo.fedorapeople.org/openstack-icehouse/rdo-release-icehouse.rpm"}
|
|
225
|
225
|
RHEL6_RDO_REPO_ID=${RHEL6_RDO_REPO_ID:-"openstack-icehouse"}
|
|
...
|
...
|
@@ -228,10 +228,13 @@ if [[ is_fedora && $DISTRO =~ (rhel) ]]; then
|
|
228
|
228
|
yum_install $RHEL6_RDO_REPO_RPM || \
|
|
229
|
229
|
die $LINENO "Error installing RDO repo, cannot continue"
|
|
230
|
230
|
fi
|
|
|
231
|
+fi
|
|
|
232
|
+
|
|
|
233
|
+if [[ is_fedora && ( $DISTRO == "rhel6" || $DISTRO == "rhel7" ) ]]; then
|
|
231
|
234
|
# RHEL requires EPEL for many Open Stack dependencies
|
|
232
|
|
- if [[ $DISTRO =~ (rhel7) ]]; then
|
|
|
235
|
+ if [[ $DISTRO == "rhel7" ]]; then
|
|
233
|
236
|
EPEL_RPM=${RHEL7_EPEL_RPM:-"http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm"}
|
|
234
|
|
- else
|
|
|
237
|
+ elif [[ $DISTRO == "rhel6" ]]; then
|
|
235
|
238
|
EPEL_RPM=${RHEL6_EPEL_RPM:-"http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"}
|
|
236
|
239
|
fi
|
|
237
|
240
|
if ! sudo yum repolist enabled epel | grep -q 'epel'; then
|
|
...
|
...
|
@@ -242,13 +245,12 @@ if [[ is_fedora && $DISTRO =~ (rhel) ]]; then
|
|
242
|
242
|
|
|
243
|
243
|
# ... and also optional to be enabled
|
|
244
|
244
|
is_package_installed yum-utils || install_package yum-utils
|
|
245
|
|
- if [[ $DISTRO =~ (rhel7) ]]; then
|
|
|
245
|
+ if [[ $DISTRO == "rhel7" ]]; then
|
|
246
|
246
|
OPTIONAL_REPO=rhel-7-server-optional-rpms
|
|
247
|
|
- else
|
|
|
247
|
+ elif [[ $DISTRO == "rhel6" ]]; then
|
|
248
|
248
|
OPTIONAL_REPO=rhel-6-server-optional-rpms
|
|
249
|
249
|
fi
|
|
250
|
250
|
sudo yum-config-manager --enable ${OPTIONAL_REPO}
|
|
251
|
|
-
|
|
252
|
251
|
fi
|
|
253
|
252
|
|
|
254
|
253
|
# Filesystem setup
|
|
...
|
...
|
@@ -518,7 +520,7 @@ function echo_nolog {
|
|
518
|
518
|
echo $@ >&3
|
|
519
|
519
|
}
|
|
520
|
520
|
|
|
521
|
|
-if [[ is_fedora && $DISTRO =~ (rhel) ]]; then
|
|
|
521
|
+if [[ is_fedora && $DISTRO == "rhel6" ]]; then
|
|
522
|
522
|
# poor old python2.6 doesn't have argparse by default, which
|
|
523
|
523
|
# outfilter.py uses
|
|
524
|
524
|
is_package_installed python-argparse || install_package python-argparse
|