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

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.

主站蜘蛛池模板: 亳州市| 福泉市| 宣城市| 武胜县| 明溪县| 遂平县| 舒城县| 黄骅市| 哈巴河县| 固原市| 乃东县| 长岛县| 屏东市| 丰都县| 龙游县| 博野县| 湾仔区| 仪陇县| 湖南省| 奉贤区| 彭山县| 张家川| 信宜市| 射阳县| 祁门县| 崇阳县| 图们市| 永吉县| 洛扎县| 呼伦贝尔市| 翁牛特旗| 三门峡市| 宣武区| 长垣县| 宁波市| 嘉兴市| 疏附县| 临漳县| 邵东县| 杭州市| 旌德县|