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

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.

主站蜘蛛池模板: 大竹县| 防城港市| 仙桃市| 广饶县| 云林县| 奉化市| 临高县| 百色市| 元阳县| 特克斯县| 菏泽市| 崇仁县| 阳朔县| 白沙| 太仆寺旗| 吉水县| 湖南省| 新建县| 上犹县| 青田县| 肥西县| 多伦县| 彝良县| 远安县| 崇左市| 大田县| 武定县| 鄂尔多斯市| 宝应县| 门源| 赤水市| 全椒县| 桃园市| 湘阴县| 高雄县| 曲阜市| 白城市| 白银市| 福安市| 永平县| 右玉县|