10.3. 切换到 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
环境文件以启用该服务。