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

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.

主站蜘蛛池模板: 凌海市| 玛多县| 登封市| 安图县| 临桂县| 玉田县| 莱阳市| 西安市| 武安市| 克什克腾旗| 德格县| 岫岩| 宝山区| 稻城县| 普格县| 那坡县| 双桥区| 朔州市| 普陀区| 新源县| 怀柔区| 涞源县| 肥西县| 佛冈县| 万州区| 南和县| 同心县| 凤山县| 西丰县| 修水县| 屏东市| 长武县| 井研县| 长治县| 高要市| 嘉黎县| 印江| 望谟县| 和政县| 承德市| 巴彦淖尔市|