8.4. 用于在 director Operator 中配置外部 Ceph Storage 使用的自定义环境文件


要与外部 Red Hat Ceph Storage 集群集成,请包括环境文件以及类似以下示例所示的值。这个示例在 overcloud 节点上启用 CephExternalCephClient 服务,并为不同的 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' 
1

  CephClientKey: 'AQDLOh1VgEp6FRAAFzT7Zw+Y9V6JJExQAsRnRQ==' 
2

  CephExternalMonHost: '172.16.1.7, 172.16.1.8' 
3

  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
1
外部 Red Hat Ceph Storage 集群的文件系统 ID。
2
用于外部 Red Hat Ceph Storage 集群的 Red Hat Ceph Storage 客户端密钥。
3
外部 Red Hat Ceph Storage 集群中所有 MON 主机的 IP 地址的逗号分隔列表。
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部