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.
- The DevOps 2.3 Toolkit
- Python爬蟲(chóng)開(kāi)發(fā):從入門(mén)到實(shí)戰(zhàn)(微課版)
- Flink SQL與DataStream入門(mén)、進(jìn)階與實(shí)戰(zhàn)
- PHP+MySQL+Dreamweaver動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)實(shí)例教程
- Flux Architecture
- 從零開(kāi)始學(xué)Linux編程
- Android玩家必備
- Python深度學(xué)習(xí)原理、算法與案例
- Scratch·愛(ài)編程的藝術(shù)家
- Angular應(yīng)用程序開(kāi)發(fā)指南
- 測(cè)試架構(gòu)師修煉之道:從測(cè)試工程師到測(cè)試架構(gòu)師
- Python Digital Forensics Cookbook
- PhoneGap 3.x Mobile Application Development Hotshot
- PHP從入門(mén)到精通(微視頻精編版)
- HTML5 Boilerplate Web Development