我要评分
获取效率
正确性
完整性
易理解

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 file.
      vi /etc/yum.conf
    2. Press i to enter the insert mode and 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 Wallaby.
    yum -y install openstack-release-wallaby.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.

    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