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

Summary

The classes that are applied to nodes should be as automatic as possible. Using a hostname convention and an ENC script, it is possible to have classes applied to nodes without any node-level configuration.

Using LDAP as a backend for class information may be a viable alternative at your enterprise. The LDAP schema included with Puppet can be successfully applied to an OpenLDAP instance or integrated into your existing LDAP infrastructure.

Hiera is a powerful tool to separate data from your module definitions. By utilizing a hierarchy of facts, it is possible to dynamically apply classes to nodes based on their facts.

The important concept in the enterprise is to minimize the customization required in the modules and push that customization up into the node declaration, to separate the code required to deploy your nodes from the specific data, through either LDAP, a custom ENC, or clever use of Hiera. If starting from scratch, Hiera is the most powerful and flexible solution to this problem.

In the next chapter, we will see how we can utilize Puppet environments to make Hiera even more flexible. We will cover using Git to keep our modules under version control.

主站蜘蛛池模板: 高唐县| 四平市| 方城县| 安国市| 隆回县| 库车县| 阜宁县| 钟祥市| 潮州市| 涿州市| 海宁市| 新安县| 兴仁县| 庄浪县| 屏山县| 察隅县| 揭西县| 广州市| 峨边| 峨边| 观塘区| 铁力市| 南昌县| 大安市| 凤山县| 徐水县| 裕民县| 鲁山县| 抚宁县| 昌乐县| 永和县| 平罗县| 孝感市| 会同县| 闽清县| 新平| 平顶山市| 沂源县| 时尚| 长丰县| 东乡族自治县|