英文:
Are attributes defined using force_override in a Chef recipe visible for subsequent recipes of the cookbook?
问题
当查阅Chef的文档时,我看到了Chef中使用的属性优先级规则。然而,现在我想知道,是否使用force_override
定义的属性也有可能覆盖后续使用normal
定义的同一属性,例如在烹饪书的后续配方中?
英文:
When looking through the documentation of Chef I saw the attribute precedence rules used in Chef. However, now I am wondering whether an attribute defined using force_override
also can potentially override the same attribute used in a subsequent recipe of the cookbook which is defined using normal
for example?
答案1
得分: 1
答案是是,如果属性已经由 force_override 级别设置,那么在普通级别设置属性不会改变节点对象上的结果属性。
英文:
The answer is Yes, as setting an attribute at normal level won't change the resulting attribute on the node object if it is already set by a force_override level.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论