11.3. 使用 CephFS 安装红帽更新基础架构

执行以下步骤,使用存储库以及 Ceph 文件系统(CephFS)在系统中安装 Red Hat Update Infrastructure(RHUI)。

先决条件

流程

  1. 导航到 RHUA 节点,再安装 rhui-installer 软件包。

    # dnf install rhui-installer
  2. 创建包含 CephFS secret 密钥的 文件。

    # echo "cephfs secretkey" > <path to file containing the CephFS secret key>
    # chmod 400 <path to file containing the CephFS secretkey>
  3. 运行 rhui-installer 并根据您的用例指定参数。

    1. 在没有代理服务器的情况下设置 RHUI:

      # rhui-installer --remote-fs-server <ceph_monip>:<ceph_port>:/ --remote-fs-type ceph --cephfs-secretkey-file <ceph_secretkey_file> --cephfs-name <cephfs_name> --cephfs-username <ceph-fs-username> --rhua-hostname <public-hostname-of-your-rhua> --cds-lb-hostname <public-hostname-of-your-cds-or-lb>

      在使用 CephFS 时,需要以下参数:

      • --remote-fs-server: 共享文件系统的远程挂载点。格式为 < ceph_monip>:<ceph_port>
      • --CDs-lb-hostname: 客户端用于访问 CDS 的负载均衡器的名称。您必须将名称指定为完全限定域名(FQDN)。
      • --RHUA-hostname: RHUA 节点的主机名。您必须将名称指定为完全限定域名(FQDN)。
      • --remote-fs-type: 要使用的文件系统类型。必须将其设置为 Ceph。
      • --CephFS-secretkey-file: 包含 CephFS secret 键的文件的路径。
      • --CephFS-name: Ceph 文件系统的名称。
      • --CephFS-username: 与 Ceph 文件系统关联的用户名。
    2. 使用代理服务器设置 RHUI:

      # rhui-installer --remote-fs-server <ceph_monip>:<ceph_port>:/ --remote-fs-type ceph --cephfs-secretkey-file <ceph_secretkey_file> --cephfs-name <cephfs_name> --cephfs-username <ceph-fs-username> --rhua-hostname <public-hostname-of-your-rhua> --cds-lb-hostname <public-hostname-of-your-cds-or-lb> --proxy-hostname <public-hostname-of-your-proxy-server> --proxy-port <TCP-port> --proxy-protocol <supported-protocol> --proxy-username <proxy-username> --proxy-password <proxy-password>

      在使用 CephFS 和代理服务器时,以下参数是必需的。

      • --remote-fs-server: 共享文件系统的远程挂载点。格式为 < ceph_monip>:<ceph_port>
      • --CDs-lb-hostname: 客户端用于访问 CDS 的负载均衡器的名称。您必须将名称指定为完全限定域名(FQDN)。
      • --RHUA-hostname: RHUA 节点的主机名。您必须将名称指定为完全限定域名(FQDN)。
      • --remote-fs-type: 要使用的文件系统类型。必须将其设置为 Ceph。
      • --CephFS-secretkey-file: 包含 CephFS secret 键的文件的路径。
      • --CephFS-name: Ceph 文件系统的名称。
      • --CephFS-username: 与 Ceph 文件系统关联的用户名。
      • --proxy-hostname: RHUA 节点将用来与红帽 CDN(cdn.redhat.com:443)通信的代理服务器的主机名。
      • --proxy-port: 代理服务器上的 TCP 端口。请注意,Squid 代理服务器通常使用端口 3128。
      • --proxy-protocol: 代理服务器配置为支持 HTTPHTTPS 的应用程序层协议。
      • --proxy-username: 与代理服务器关联的用户名。只有在代理服务器需要身份验证时,才指定用户名。
      • --proxy-password: 用于访问代理服务器的密码。只有在代理服务器需要身份验证时,才指定密码。
重要

rhui-installer 命令默认设置初始 RHUI 登录密码,并将其存储在 /etc/rhui/rhui-subscription-sync.conf 文件中。

如果要设置自己的密码,您可以使用 --rhui-manager-password 参数覆盖初始密码。

验证

  • 在 RHUA 节点上,验证您能否访问 RHUI 终端用户界面(TUI)。

    # rhui-manager