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

Naming roles in your business's conversational name

The name of a role should be based on your business's conversational name for the type of node it manages. So, if you generally call the machine a web server, you should prefer a name such as role::web, as opposed to naming it according to any underlying profile technology such as web::apache or web::nginx. This adds a layer of abstraction and hides the complexity of the profile code, again utilizing good programming practices.

Another advantage to this best practice is the benefit of communication within your organization: testers, project managers, and even business people can understand the simple language of roles, yet Puppet developers communicate more readily at the deeper profile level of abstraction.

Profiles expose an appropriate interface to roles. Roles, correspondingly, also expose a neat interface to your ENC, and this allows even fewer technical company personnel to be responsible for node classification.

主站蜘蛛池模板: 乡宁县| 历史| 轮台县| 杭锦旗| 深泽县| 忻州市| 台东县| 福贡县| 汝阳县| 林甸县| 房产| 鲁山县| 万全县| 大埔县| 新乡市| 宁强县| 济源市| 依兰县| 措美县| 泉州市| 措美县| 高平市| 洞口县| 屏东市| 密山市| 高要市| 兴和县| 兴国县| 衡东县| 营山县| 沙湾县| 乌审旗| 讷河市| 淳安县| 福鼎市| 廉江市| 普安县| 呼伦贝尔市| 宜州市| 香河县| 连南|