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

Reserved names and allowed characters

As with every language, Puppet DSL has some restrictions on the names we can give to its elements and the allowed characters.

As a general rule, for names of resources, variables, parameters, classes, and modules we can use only lowercase letters, numbers, and the underscore (_). Usage of hyphens (-) should be avoided (in some cases it is forbidden; in others it depends on Puppet's version).

We can use uppercase letters in variables names (but not at their beginning) and any character for resources' titles.

Names are case sensitive, and there are some reserved words that cannot be used as names for resources, classes, or defines or as unquoted word strings in the code, such as:

and, case, class, default, define, else, elsif, false, if, in, import, inherits, node, or, true, undef, unless, main, settings, $string.

A fully updated list of reserved words can be found here: https://docs.puppet.com/puppet/latest/reference/lang_reserved.html

主站蜘蛛池模板: 宜黄县| 成武县| 永修县| 平乡县| 宕昌县| 读书| 尉氏县| 南靖县| 南汇区| 山东省| 新安县| 辉县市| 罗源县| 乐平市| 驻马店市| 新和县| 陵川县| 镇原县| 开阳县| 临邑县| 天台县| 高碑店市| 庄浪县| 尼勒克县| 同仁县| 环江| 宁国市| 旬邑县| 临泉县| 搜索| 永仁县| 淮阳县| 泽普县| 南江县| 大田县| 独山县| 澳门| 防城港市| 浏阳市| 繁峙县| 武穴市|