官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 南康市| 柳州市| 南皮县| 武定县| 新余市| 溆浦县| 奉节县| 青铜峡市| 武汉市| 大同市| 达州市| 五原县| 桂林市| 卓尼县| 怀宁县| 湘潭县| 融水| 曲麻莱县| 互助| 长顺县| 清河县| 色达县| 诏安县| 凤城市| 肃南| 祁门县| 乌拉特后旗| 绵阳市| 自贡市| 城市| 双桥区| 万年县| 大港区| 丹凤县| 红桥区| 曲松县| 青海省| 乌兰县| 瑞安市| 罗江县| 宁河县|