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

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 couple 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 Chapter 2Puppet Server and Agents, we will introduce the master/agent setup.

主站蜘蛛池模板: 宜兰县| 油尖旺区| 晋州市| 龙胜| 西宁市| 新安县| 荃湾区| 庆元县| 长寿区| 乐山市| 茌平县| 灵石县| 叙永县| 渝中区| 博客| 海南省| 连城县| 南雄市| 汾阳市| 长寿区| 利辛县| 光泽县| 茂名市| 秦皇岛市| 重庆市| 大城县| 威信县| 水城县| 卢湾区| 东方市| 新化县| 涪陵区| 桃园市| 会同县| 郯城县| 新巴尔虎左旗| 苏州市| 博爱县| 鄂尔多斯市| 洪江市| 鹤庆县|