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.
- Spring 5.0 Microservices(Second Edition)
- ASP.NET MVC4框架揭秘
- Java程序員面試算法寶典
- MySQL數據庫管理與開發實踐教程 (清華電腦學堂)
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- Oracle Exadata專家手冊
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- OpenCV 4計算機視覺項目實戰(原書第2版)
- SSM開發實戰教程(Spring+Spring MVC+MyBatis)
- Android群英傳
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- Beginning C# 7 Hands-On:The Core Language
- Java 11 and 12:New Features
- C/C++代碼調試的藝術
- 優化驅動的設計方法