Skip to content

Commit 5c0a3cf

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Install Juno RDO repos for RHEL7"
2 parents e754f87 + fc99426 commit 5c0a3cf

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

stack.sh

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,6 @@ fi
212212
# Some distros need to add repos beyond the defaults provided by the vendor
213213
# to pick up required packages.
214214

215-
if is_fedora && [ $DISTRO == "rhel6" ]; then
216-
# Installing Open vSwitch on RHEL requires enabling the RDO repo.
217-
RHEL6_RDO_REPO_RPM=${RHEL6_RDO_REPO_RPM:-"http://rdo.fedorapeople.org/openstack-icehouse/rdo-release-icehouse.rpm"}
218-
RHEL6_RDO_REPO_ID=${RHEL6_RDO_REPO_ID:-"openstack-icehouse"}
219-
if ! sudo yum repolist enabled $RHEL6_RDO_REPO_ID | grep -q $RHEL6_RDO_REPO_ID; then
220-
echo "RDO repo not detected; installing"
221-
yum_install $RHEL6_RDO_REPO_RPM || \
222-
die $LINENO "Error installing RDO repo, cannot continue"
223-
fi
224-
fi
225-
226215
if is_fedora && [[ $DISTRO == "rhel6" || $DISTRO == "rhel7" ]]; then
227216
# RHEL requires EPEL for many Open Stack dependencies
228217

@@ -269,6 +258,23 @@ EOF
269258
OPTIONAL_REPO=rhel-6-server-optional-rpms
270259
fi
271260
sudo yum-config-manager --enable ${OPTIONAL_REPO}
261+
262+
# Installing Open vSwitch on RHEL requires enabling the RDO repo.
263+
# Note no juno packages for rhel6
264+
if [[ $DISTRO == "rhel6" ]]; then
265+
RHEL_RDO_REPO_RPM=${RHEL6_RDO_REPO_RPM:-"https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm"}
266+
RHEL_RDO_REPO_ID=${RHEL6_RDO_REPO_ID:-"openstack-icehouse"}
267+
elif [[ $DISTRO == "rhel7" ]]; then
268+
RHEL_RDO_REPO_RPM=${RHEL7_RDO_REPO_RPM:-"https://repos.fedorapeople.org/repos/openstack/openstack-juno/rdo-release-juno-1.noarch.rpm"}
269+
RHEL_RDO_REPO_ID=${RHEL7_RDO_REPO_ID:-"openstack-juno"}
270+
fi
271+
272+
if ! sudo yum repolist enabled $RHEL_RDO_REPO_ID | grep -q $RHEL_RDO_REPO_ID; then
273+
echo "RDO repo not detected; installing"
274+
yum_install $RHEL_RDO_REPO_RPM || \
275+
die $LINENO "Error installing RDO repo, cannot continue"
276+
fi
277+
272278
fi
273279

274280

0 commit comments

Comments
 (0)