8.4. 用于在 director Operator 中配置外部 Ceph Storage 使用的自定义环境文件
要与外部 Red Hat Ceph Storage 集群集成,请包括环境文件以及类似以下示例所示的值。这个示例在 overcloud 节点上启用 CephExternal 和 CephClient 服务,并为不同的 RHOSP 服务设置池。
注意
您可以修改此配置来适合您的存储配置。
要在部署中使用此模板,请将示例的内容复制到 workstation 上的 custom_environment_files 目录中的 ceph-ansible-external.yaml 中。
resource_registry:
OS::TripleO::Services::CephExternal: deployment/cephadm/ceph-client.yaml
parameter_defaults:
CephClusterFSID: '4b5c8c0a-ff60-454b-a1b4-9747aa737d19'
CephClientKey: 'AQDLOh1VgEp6FRAAFzT7Zw+Y9V6JJExQAsRnRQ=='
CephExternalMonHost: '172.16.1.7, 172.16.1.8'
ExternalCeph: true
# the following parameters enable Ceph backends for Cinder, Glance, Gnocchi and Nova
NovaEnableRbdBackend: true
CinderEnableRbdBackend: true
CinderBackupBackend: ceph
GlanceBackend: rbd
# Uncomment below if enabling legacy telemetry
# GnocchiBackend: rbd
# If the Ceph pools which host VMs, Volumes and Images do not match these
# names OR the client keyring to use is not named 'openstack', edit the
# following as needed.
NovaRbdPoolName: vms
CinderRbdPoolName: volumes
CinderBackupRbdPoolName: backups
GlanceRbdPoolName: images
# Uncomment below if enabling legacy telemetry
# GnocchiRbdPoolName: metrics
CephClientUserName: openstack
# finally we disable the Cinder LVM backend
CinderEnableIscsiBackend: false