4.3. 使用环境文件配置 undercloud
您通过 undercloud.conf
文件配置 undercloud 的主要参数。您也可以配置特定于 undercloud 安装的 Heat 参数。您使用包含 Heat 参数的环境文件完成此操作。
步骤
-
在
/home/stack/templates/custom-undercloud-params.yaml
上创建环境文件。 编辑此文件并包括您的 Heat 参数。以下示例显示如何为某些 OpenStack Platform 服务启用调试:
parameter_defaults: Debug: True
完成后保存此文件。
编辑
undercloud.conf
文件,找到custom_env_files
参数。编辑此参数以指向环境文件:custom_env_files = /home/stack/templates/custom-undercloud-params.yaml
注意您可以使用逗号分隔列表指定多个环境文件。
director 安装在下次安装或升级 undercloud 的操作过程中包括此环境文件。