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

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.

主站蜘蛛池模板: 天全县| 德兴市| 沂源县| 会同县| 蕲春县| 晋州市| 亳州市| 息烽县| 平昌县| 北碚区| 前郭尔| 天祝| 临西县| 南通市| 江都市| 古交市| 古交市| 曲麻莱县| 黄大仙区| 应用必备| 双流县| 正阳县| 乌审旗| 唐山市| 大港区| 长宁县| 平原县| 庆元县| 翼城县| 华亭县| 金湖县| 普兰县| 遂宁市| 根河市| 祁东县| 富宁县| 本溪市| 中西区| 沾化县| 资阳市| 涿州市|