Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring a Yum Source

Configure the Yum source on all nodes and enable the EPOL software repository to support OpenStack.

  1. Configure the Yum configuration file.
    1. Open the Yum configuration file.
      vi /etc/yum.conf
    2. Add the following content to the end of the file:
      sslverify=false
    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  2. Install and enable the Yum source for OpenStack Train.
    yum -y install openstack-release-train.noarch
    yum clean all && yum makecache
  3. Configure the Yum source. Enable the EPOL software repository to support OpenStack.

    If EPOL is not enabled for the Yum source, perform 3 to configure EPOL. Otherwise, skip 3.

    1. Open the file.
      vi /etc/yum.repos.d/openEuler.repo
    2. Press i to enter the insert mode and modify the following content:
      [EPOL]
      name=EPOL
      baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/EPOL/main/$basearch/
      metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/EPOL/main&arch=$basearch
      metadata_expire=1h
      enabled=1
      gpgcheck=1
      gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/OS/$basearch/RPM-GPG-KEY-openEuler

      If enabled is 1, the EPOL software repository is enabled. In this case, skip 3.b and later operations in this section.

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
    4. Clear the cache and re-create a cache.
      yum clean all && yum makecache