Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

6.6. 切换到 rhsm 可组合服务

rhel-registration 方法运行 bash 脚本来处理 overcloud 注册。此方法的脚本和环境文件位于 /usr/share/openstack-tripleo-heat-templates/extraconfig/pre_deploy/rhel-registration/ 的核心 Heat 模板集合中。

此流程演示了如何从 rhel-registration 方法切换到 rhsm 可组合服务。

流程

  1. 在以后的部署操作中排除 rhel-registration 环境文件。在大多数情况下,这是以下文件:

    • rhel-registration/environment-rhel-registration.yaml
    • rhel-registration/rhel-registration-resource-registry.yaml
  2. 为将来的部署操作添加 rhsm 可组合服务参数的环境文件。

此方法将 rhel-registration 参数替换为 rhsm 服务参数,并更改启用服务的 Heat 资源:

resource_registry:
  OS::TripleO::NodeExtraConfig: rhel-registration.yaml

改为:

resource_registry:
  OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/extraconfig/services/rhsm.yaml

为了帮助将您的详细信息从 rhel-registration 方法转换为 rhsm 方法,请使用下表来映射您的参数及其值。