官术网_书友最值得收藏!

Deciding how to set the parameters for component classes

As the Puppet documentation on roles and profiles states (https://puppet.com/docs/pe/2017.3/managing_nodes/roles_and_profiles_example.html#the-rules-for-profile-classes), there is a trade-off regarding how to set the parameters provided to component modules, and we should base our decision on how readable the code is versus how flexible the business data needs to be.

That is, if we always use the same value for a certain parameter, we can hardcode it (highly readable), we can compute the value for a parameter based on, for example, facts (quite readable and somewhat flexible), or we can look up the value of a parameter in our business data hierarchy (highly flexible).

主站蜘蛛池模板: 松滋市| 双牌县| 宁蒗| 师宗县| 治县。| 通州市| 崇文区| 吉木乃县| 大同县| 嘉黎县| 光泽县| 格尔木市| 肇庆市| 祁门县| 霍林郭勒市| 兴和县| 临夏市| 济南市| 临洮县| 鄂尔多斯市| 石门县| 娄底市| 安塞县| 耿马| 山东省| 荥阳市| 九龙县| 香格里拉县| 崇礼县| 永吉县| 张家口市| 汪清县| 黄骅市| 柯坪县| 泾源县| 江安县| 新和县| 保山市| 巨野县| 隆化县| 井研县|