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

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.

主站蜘蛛池模板: 南江县| 锦屏县| 珲春市| 溆浦县| 淮北市| 开原市| 精河县| 贺兰县| 临漳县| 绵阳市| 松阳县| 武威市| 汪清县| 桐柏县| 景洪市| 泰来县| 宜昌市| 策勒县| 梅河口市| 江北区| 靖边县| 武威市| 通渭县| 东宁县| 佳木斯市| 三门县| 上饶县| 玉林市| 津市市| 尼玛县| 红河县| 惠来县| 彭阳县| 泸定县| 易门县| 赤壁市| 杭锦旗| 青海省| 札达县| 大石桥市| 普安县|