5.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可组合服务。例如:- name: Controller description: | Controller role that has all the controller services loaded and handles Database, Messaging and Network functions. CountDefault: 1 ... ServicesDefault: ... - OS::TripleO::Services::Rhsm ...-
将
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/deployment/rhsm/rhsm-baremetal-ansible.yaml
您还可以将 /usr/share/openstack-tripleo-heat-templates/environments/rhsm.yaml 环境文件包含在部署中以启用该服务。