- 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).
推薦閱讀
- 全國大學(xué)生電子設(shè)計(jì)競(jìng)賽訓(xùn)練教程
- 未解之謎(下)
- 通信網(wǎng)技術(shù)基礎(chǔ)
- 風(fēng)云三號(hào)氣象衛(wèi)星地面應(yīng)用系統(tǒng)工程技術(shù)和實(shí)踐
- 天地一體化信息網(wǎng)絡(luò)通信服務(wù)技術(shù)
- EPON/GPON技術(shù)問答
- 陣列信號(hào)處理及MATLAB實(shí)現(xiàn)(第2版)
- 電力工程與通信技術(shù)
- 多媒體通信技術(shù)與應(yīng)用
- 高速可見光通信關(guān)鍵技術(shù)
- 信息通信系統(tǒng)接入網(wǎng)維護(hù)管理概要
- 電子工程師自學(xué)速成:設(shè)計(jì)篇
- 面向?qū)拵o線接入的光載無線系統(tǒng)
- 大話TD-SCDMA
- 巧學(xué)巧用電子元器件實(shí)用技術(shù)