2.2. 检查 roles_data 文件
roles_data 文件包含 director 部署到节点上的角色的 YAML 格式列表。每个角色都包含组成该角色的所有服务的定义。使用以下示例片断以了解 roles_data 语法:
- name: Controller
description: |
Controller role that has all the controller services loaded and handles
Database, Messaging and Network functions.
ServicesDefault:
- OS::TripleO::Services::AuditD
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CephClient
...
- name: Compute
description: |
Basic Compute Node role
ServicesDefault:
- OS::TripleO::Services::AuditD
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CephClient
...
核心 heat 模板集合包括一个默认的 roles_data 文件,位于 /usr/share/openstack-tripleo-heat-templates/roles_data.yaml。默认文件包含以下角色类型的定义:
-
Controller -
Compute -
BlockStorage -
ObjectStorage -
Ceph 存储.
openstack overcloud deploy 命令在部署过程中包含默认的 roles_data.yaml 文件。但是,您可以使用 -r 参数使用自定义 roles_data 文件覆盖此文件:
$ openstack overcloud deploy --templates -r ~/templates/roles_data-custom.yaml