|
212 | 212 | # Some distros need to add repos beyond the defaults provided by the vendor |
213 | 213 | # to pick up required packages. |
214 | 214 |
|
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 | | - |
226 | 215 | if is_fedora && [[ $DISTRO == "rhel6" || $DISTRO == "rhel7" ]]; then |
227 | 216 | # RHEL requires EPEL for many Open Stack dependencies |
228 | 217 |
|
|
269 | 258 | OPTIONAL_REPO=rhel-6-server-optional-rpms |
270 | 259 | fi |
271 | 260 | 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 | + |
272 | 278 | fi |
273 | 279 |
|
274 | 280 |
|
|
0 commit comments