- Puppet 5 Essentials(Third Edition)
- Martin Alfke Felix Frank
- 265字
- 2021-07-02 18:22:24
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 2, Puppet Server and Agents, we will introduce the master/agent setup.
- Unity 2020 Mobile Game Development
- Java Web程序設計
- 大學計算機基礎(第2版)(微課版)
- Mastering Apache Maven 3
- Python Web數據分析可視化:基于Django框架的開發實戰
- 詳解MATLAB圖形繪制技術
- Android群英傳
- DB2SQL性能調優秘笈
- 基于MATLAB的控制系統仿真及應用
- 虛擬現實:引領未來的人機交互革命
- Mastering PostgreSQL 11(Second Edition)
- SAP HANA Starter
- Unity與C++網絡游戲開發實戰:基于VR、AI與分布式架構
- jQuery EasyUI從零開始學
- Instant SQL Server Analysis Services 2012 Cube Security