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

  • Mastering Puppet 5
  • Ryan Russell Yates Jason Southgate
  • 110字
  • 2021-07-16 17:46:12

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).

主站蜘蛛池模板: 田东县| 荔浦县| 安庆市| 犍为县| 连江县| 临清市| 双柏县| 怀仁县| 武义县| 通城县| 墨竹工卡县| 岢岚县| 吴桥县| 辉南县| 壤塘县| 建始县| 南昌市| 丘北县| 浮山县| 张掖市| 长宁区| 文山县| 凉山| 鄂托克前旗| 安宁市| 敖汉旗| 泗水县| 兴宁市| 阳江市| 双桥区| 甘洛县| 比如县| 多伦县| 奉化市| 桐乡市| 石棉县| 襄樊市| 荆门市| 岳普湖县| 荔浦县| 灵宝市|