- Puppet:Mastering Infrastructure Automation
- Felix Frank Martin Alfke Alessandro Franceschi Jaime Soriano Pastor Thomas Uphillis
- 197字
- 2021-07-09 18:59:07
Summary
A template is a frequent occurrence and is one of the best ways for Puppet to manage dynamic file content. Evaluating each template requires extra effort from the compiler, but the gain in flexibility is usually worth it. Variables in templates have to be declared using any of the three available scope lookup notations.
The concept of virtual resources is much less ubiquitous. Virtual resources allow you to flexibly add certain entities to a node's catalog. The collector syntax that is used for this can also be used to override attribute values, which works for non-virtual resources as well.
Once PuppetDB is installed and configured, you can also export resources so that other node manifests can receive their configuration information. This allows you to model distributed systems quite elegantly.
The resource defaults are just a syntactic shortcut that help keep your manifest concise. They have to be used with care, though. Some language features such as the defined
function (and its module-based successor, which is the ensure_resource
function) should be avoided if possible.
The next chapter gives you an overview and introduction to some of the new and enhanced features in the milestone Puppet 4 release.
- 從零開始:數字圖像處理的編程基礎與應用
- Learning C# by Developing Games with Unity 2020
- 嚴密系統設計:方法、趨勢與挑戰
- Responsive Web Design by Example
- Mastering JavaScript High Performance
- Learning OpenStack Networking(Neutron)(Second Edition)
- 0 bug:C/C++商用工程之道
- SQL Server 2008 R2數據庫技術及應用(第3版)
- SignalR:Real-time Application Development(Second Edition)
- Instant Apache Camel Messaging System
- SQL Server實例教程(2008版)
- 每個人的Python:數學、算法和游戲編程訓練營
- Google Maps JavaScript API Cookbook
- 精益軟件開發管理之道
- Puppet Cookbook(Third Edition)