知识卡片
配置文件分离实例值
每个实例使用独立参数文件,可以审计谁在何时改了什么值,并把配置与资源实现分开。它适合相对固定的环境。代价是新环境需要新文件,临时环境需自动生成文件,多层默认值和覆盖继承容易难以理解;普通版本库文件不应保存秘密。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 配置基础设施栈实例 · 查看原书依据
Creating configuration files for a stack’s instances is straightforward. Because the file is committed to the source code repository, it is easy to do the following: See which values are used for any given environment (“What is the maximum cluster size for production?”) Trace the history for debugging (“When did the maximum cluster size change?”)
参考来源
- 位置:《Infrastructure As Code》第8章《配置基础设施栈实例》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch08.html)
- 结论依据:原文说明每个实例使用独立参数文件,可以审计谁在何时改了什么值,并把配置与资源实现分开;本卡据此解释其用途及适用边界。
- 原始内容:Creating configuration files for a stack’s instances is straightforward. Because the file is committed to the source code repository, it is easy to do the following: See which values are used for any given environment (“What is the maximum cluster size for production?”) Trace the history for debugging (“When did the maximum cluster size change?”)