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

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.

主站蜘蛛池模板: 布尔津县| 德化县| 缙云县| 达孜县| 申扎县| 武胜县| 广丰县| 辉南县| 湟中县| 惠来县| 扎鲁特旗| 渭源县| 筠连县| 镶黄旗| 黄陵县| 上高县| 亚东县| 金门县| 齐河县| 酒泉市| 鄂托克前旗| 绿春县| 芜湖县| 贵州省| 房山区| 广东省| 华亭县| 砀山县| 邻水| 高陵县| 徐水县| 宁乡县| 定兴县| 临沧市| 临城县| 彭泽县| 鹤峰县| 县级市| 伊通| 西青区| 万宁市|