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

  • Puppet:Mastering Infrastructure Automation
  • Felix Frank Martin Alfke Alessandro Franceschi Jaime Soriano Pastor Thomas Uphillis
  • 238字
  • 2021-07-09 18:59:09

Chapter 8. Separating Data from Code Using Hiera

Working through the first seven chapters, you have used the basic structural elements of Puppet in numerous examples and contexts. There has been a quick demonstration of the more advanced language features, and you have a good idea of what distinguishes the manifest writing process in Puppet 4 from the earlier releases.

For all their expressive power, manifests do have some limitations. A manifest that is designed by the principles taught up to this point mixes logic with data. Logic is not only evident in control structures such as if and else, but it also just emerges from the network of classes and defines that include and instantiate one another.

However, you cannot configure a machine by just including some generic classes. Many properties of a given system are individual and must be passed as parameters. This can have maintenance implications for a manifest that must accommodate a large number of nodes. This chapter will teach you how to bring order back to such complex code bases. We will also explain how many larger sites structure the codebase as a whole. These will be our final steps in this Puppet Essentials collection:

  • Understanding the need for separate data storage
  • Structuring configuration data in a hierarchy
  • Retrieving and using Hiera values in manifests
  • Converting resources to data
  • A practical example
  • Debugging Hiera lookups
  • Implementing the Roles and Profiles Pattern
主站蜘蛛池模板: 门头沟区| 平阴县| 长顺县| 南川市| 宣汉县| 仙居县| 青海省| 资源县| 肥乡县| 谷城县| 客服| 合江县| 胶州市| 册亨县| 汾阳市| 临武县| 安达市| 柘荣县| 巴彦淖尔市| 南皮县| 桦川县| 临邑县| 澎湖县| 四平市| 隆化县| 望都县| 天水市| 北川| 西丰县| 西昌市| 三门县| 定南县| 寿阳县| 乌兰浩特市| 太仆寺旗| 广昌县| 伽师县| 苍溪县| 大庆市| 东丽区| 云浮市|