Summary
Upgrading to Puppet 3 should be done in a step-by-step procedure where your existing code will be evaluated using Puppet 3.8 and the new parser.
Thanks to the type system, it is now possible to deal with data in a far more elegant way directly in your Puppet DSL code. The new functions API allows you to immediately recognize to which module a function belongs by using namespaces. Similar functions can now be combined within a single file by making use of the dispatch
method and data types, allowing a form of function overloading.
The new EPP templates offer better understanding of variable source by using the Puppet syntax for variable references. Passing parameters to templates will allow you to make use of modules in a more flexible way.
Combining EPP templates and the HEREDOC syntax will allow you to keep template code and data directly visible inside your classes.
In the upcoming final chapter, you will learn about Hiera and how it can help you bring order to a scalable Puppet code base.
- Expert C++
- 數(shù)據(jù)庫程序員面試筆試真題與解析
- TensorFlow Lite移動端深度學(xué)習(xí)
- PostgreSQL for Data Architects
- Java Web基礎(chǔ)與實(shí)例教程(第2版·微課版)
- Developing Middleware in Java EE 8
- Java程序員面試算法寶典
- Building Cross-Platform Desktop Applications with Electron
- C++程序設(shè)計基礎(chǔ)教程
- Learning Python Design Patterns
- Learning JavaScript Data Structures and Algorithms
- Building Microservices with .NET Core
- 微信小程序開發(fā)實(shí)戰(zhàn):設(shè)計·運(yùn)營·變現(xiàn)(圖解案例版)
- Oracle數(shù)據(jù)庫編程經(jīng)典300例
- Java Web應(yīng)用開發(fā)項(xiàng)目教程