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

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.

主站蜘蛛池模板: 慈溪市| 望城县| 都匀市| 安西县| 新田县| 浪卡子县| 西吉县| 泰来县| 鄄城县| 平塘县| 丰宁| 托克逊县| 灵山县| 新巴尔虎左旗| 灵璧县| 大庆市| 阳泉市| 城固县| 镇赉县| 天气| 鹤峰县| 鹰潭市| 云和县| 昌平区| 逊克县| 兰溪市| 左权县| 化德县| 吉木萨尔县| 孝义市| 铜鼓县| 江津市| 祁阳县| 郴州市| 嘉峪关市| 昌黎县| 于都县| 白玉县| 北碚区| 温泉县| 大石桥市|