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

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.

主站蜘蛛池模板: 永兴县| 彭州市| 马龙县| 离岛区| 怀安县| 台东县| 岳池县| 灵川县| 普陀区| 东乡| 辰溪县| 扬州市| 南丹县| 泽州县| 鄯善县| 金溪县| 南召县| 鄂温| 齐齐哈尔市| 徐水县| 黄石市| 崇信县| 郸城县| 乡城县| 中卫市| 关岭| 乌兰察布市| 革吉县| 西贡区| 玉门市| 都匀市| 毕节市| 伊宁市| 昭觉县| 汤阴县| 措美县| 安塞县| 云浮市| 丰都县| 铜梁县| 巢湖市|