Show Table of Contents
6.16. 自定义 Puppet 配置数据
Heat 模板集合包括一组参数来把额外的配置传递到特定的节点类型。这些参数把相关的配置保存为 hieradata 来作为节点的 Puppet 配置。这些参数包括:
- ExtraConfig
- 添加到所有节点的配置
- controllerExtraConfig
- 添加到所有 Controller 节点的配置。
- NovaComputeExtraConfig
- 添加到所有 Compute 节点的配置。
- BlockStorageExtraConfig
- 添加到所有 Block Storage 节点的配置。
- ObjectStorageExtraConfig
- 添加到所有 Object Storage 节点的配置。
- CephStorageExtraConfig
- 添加到所有 Ceph Storage 节点的配置。
为了把额外的配置添加到部署后的配置过程中,创建一个在
parameter_defaults 的部分中包括这些参数的环境文件。例如,把 Compute 主机的保留内存增加到 1024 MB,把 VNC 的键盘输入设置为日语:
parameter_defaults: NovaComputeExtraConfig: nova::compute::reserved_host_memory: 1024 nova::compute::vnc_keymap: ja
在运行
openstack overcloud deploy 时包括这个环境文件。
重要
您只能定义每个参数一次。以后的使用会覆盖以前的值。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.