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.
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- DBA攻堅(jiān)指南:左手Oracle,右手MySQL
- 密碼學(xué)原理與Java實(shí)現(xiàn)
- INSTANT Weka How-to
- Oracle Exadata專家手冊(cè)
- Scala Reactive Programming
- 深度學(xué)習(xí):Java語言實(shí)現(xiàn)
- 時(shí)空數(shù)據(jù)建模及其應(yīng)用
- MySQL 8從零開始學(xué)(視頻教學(xué)版)
- PHP+MySQL Web應(yīng)用開發(fā)教程
- 一步一步學(xué)Spring Boot:微服務(wù)項(xiàng)目實(shí)戰(zhàn)(第2版)
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)
- Splunk Developer's Guide(Second Edition)
- Mastering React Test:Driven Development
- 編程真好玩:從零開始學(xué)網(wǎng)頁設(shè)計(jì)及3D編程