12.6. 切换到 rhsm 可组合服务
前面的 rhel-registration 方法运行 bash 脚本来处理 overcloud 注册。此方法的脚本和环境文件位于 /usr/share/openstack-tripleo-heat-templates/extraconfig/pre_deploy/rhel-registration/ 的核心 heat 模板集合中。
完成以下步骤,从 rhel-registration 方法切换到 rhsm 可组合服务。
流程
从将来的部署操作中排除
rhel-registration环境文件。在大多数情况下,排除以下文件:-
rhel-registration/environment-rhel-registration.yaml -
rhel-registration/rhel-registration-resource-registry.yaml
-
如果您使用自定义
roles_data文件,请确保roles_data文件中的每个角色都包含OS::TripleO::Services::Rhsm可组合服务。例如:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
为
rhsm可组合服务参数添加环境文件,以备将来部署操作。
此方法将 rhel-registration 参数替换为 rhsm 服务参数,并更改从中启用该服务的 heat 资源:
resource_registry: OS::TripleO::NodeExtraConfig: rhel-registration.yaml
resource_registry:
OS::TripleO::NodeExtraConfig: rhel-registration.yaml
至:
resource_registry: OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/deployment/rhsm/rhsm-baremetal-ansible.yaml
resource_registry:
OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/deployment/rhsm/rhsm-baremetal-ansible.yaml
您还可以使用部署包含 /usr/share/openstack-tripleo-heat-templates/environments/rhsm.yaml 环境文件以启用该服务。