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

Summary

After installing Puppet on your system, you can use it by writing and applying manifests. These manifests are written in Puppet's DSL and contain descriptions of the desired state of your system. Even though they resemble scripts, they should not be considered as such. For one thing, they consist of resources instead of commands. These resources are generally not evaluated in the order in which they have been written. An explicit ordering should be defined through the require and before metaparameters instead.

Each resource has a number of attributes: parameters and properties. Each property is evaluated in its own right; Puppet detects whether a change to the system is necessary to get any property into the state that is defined in the manifest. It will also perform such changes. This is referred to as synchronizing a resource or property.

The ordering parameters, require and before, are of further importance because they establish dependency of one resource on one or more others. This allows Puppet to skip parts of the catalog if an important resource cannot be synchronized. Circular dependencies must be avoided.

Each resource in the manifest has a resource type that describes the nature of the system entity that is being managed. Some of the types that are used most frequently are file, package, and service. Puppet comes with many types for convenient system management, and many plugins are available to add even more. Some tasks require the use of exec resources, but this should be done sparingly.

In the next chapter, we will introduce the master/agent setup.

主站蜘蛛池模板: 竹北市| 黄大仙区| 洪洞县| 格尔木市| 朝阳市| 慈利县| 湛江市| 浦江县| 错那县| 云梦县| 金乡县| 永泰县| 茌平县| 淳化县| 板桥市| 临泉县| 商丘市| 浠水县| 太谷县| 宁陕县| 平湖市| 大宁县| 雷波县| 西宁市| 凌海市| 陇川县| 晋中市| 长汀县| 奉节县| 阿鲁科尔沁旗| 长岭县| 东城区| 磐安县| 廉江市| 柘城县| 孝昌县| 许昌县| 错那县| 蓬溪县| 宁城县| 开鲁县|