11.6. 准备 Leapp 使用 Satellite 服务器
如果您使用 Satellite Server 6 来托管 RPM 内容,请完成以下准备步骤以确保使用 Satellite 成功进行 Leapp 升级。
先决条件
- 创建与 Red Hat OpenStack Platform 16.2 和 Red Hat Enterprise Linux 8.4 的软件仓库关联的卫星服务器激活码。
- 为您的 overcloud 节点生成 Ansible 清单文件。
- 在卫星服务器上,为 Red Hat OpenStack Platform 16.2 升级创建并提升内容视图,并包括升级所需的存储库。如需更多信息,请参阅 Red Hat Satellite Server 6 的注意事项。
如果使用 Ceph 订阅并将 director 配置为将
overcloud-minimal
镜像用于 Ceph 存储节点,您必须创建内容视图并将以下 Red Hat Enterprise Linux(RHEL)8.4 软件仓库添加到其中:Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-appstream-rpms x86_64 8.4
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
rhel-8-for-x86_64-baseos-rpms x86_64 8.4
如需更多信息,请参阅 Red Hat Satellite Content Management 指南中的 Importing Red Hat Content 和 Managing Content Views。
流程
-
以
stack
用户的身份登录 undercloud。 创建名为
playbook-satellite.yaml
的文件,并粘贴到文件中:- name: Pre-install leapp hosts: overcloud become: yes tasks: - name: Pre-install leapp yum: name: - leapp - leapp-repository state: installed - name: Remove katello-host-tools-fact-plugin yum: name: - katello-host-tools-fact-plugin state: removed - name: Register system redhat_subscription: activationkey: "osp16-key" org_id: "ACME" server_hostname: "satellite.example.com" rhsm_baseurl: "https://satellite.example.com/pulp/repos" force_register: True
修改
redhat_subscription
变量,使其适合您的卫星服务器。运行 playbook:
$ ansible-playbook -i ~/inventory.yaml playbook-satellite.yaml