在Chef食谱中使用`force_override`定义的属性,是否对该食谱后续的食谱可见?

huangapple go评论43阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月11日 02:49:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76221716.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定