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

Data types

The data type system in Puppet 4 allows you to check and verify whether a variable is of a specific data type. This prevents code from behaving incorrectly when (for example) it expects an array but receives a Boolean value.

The full power of data types will be explained in Chapter 7, New Features from Puppet 4 and 5. Within Puppet manifests, it is possible to check for data types using the regexp control structure.

Puppet has core data types and abstract data types. The core data types are the most commonly used types of data, such as string or integer, whereas abstract data types allow for more sophisticated type validation, such as optional or variant.

Prior to dealing with data types, we must understand the concept of control structures within Puppet manifests.

主站蜘蛛池模板: 博白县| 宁国市| 曲麻莱县| 乌苏市| 文成县| 个旧市| 红桥区| 平度市| 慈利县| 天等县| 长阳| 望都县| 鄂尔多斯市| 安乡县| 札达县| 乌兰察布市| 沅陵县| 高要市| 夏邑县| 泉州市| 绩溪县| 古交市| 元氏县| 拉孜县| 宾川县| 崇州市| 丰城市| 呼伦贝尔市| 孝感市| 扬州市| 高雄县| 治县。| 满洲里市| 游戏| 福鼎市| 孟村| 谷城县| 东城区| 宜昌市| 景泰县| 三门峡市|