参数

参数名字 描述
smart_variable
必填

Validations:

  • Must be a Hash

smart_variable[variable]
必填

变量名称

Validations:

  • Must be a String

smart_variable[puppetclass_id]
选填 , 允许空值

Puppet 类别 ID

Validations:

  • Must be a number.

smart_variable[default_value]
选填 , 允许空值

变量的默认值

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

smart_variable[hidden_value]
选填 , 允许空值

何时将启用的参数隐藏到 UI 中

Validations:

  • Must be one of: true, false, 1, 0

smart_variable[override_value_order]
选填 , 允许空值

解析参数值的指令

Validations:

  • Must be a String

smart_variable[description]
选填 , 允许空值

变量描述

Validations:

  • Must be a String

smart_variable[validator_type]
选填 , 允许空值

验证值类型

Validations:

  • Must be one of: regexp, list.

smart_variable[validator_rule]
选填 , 允许空值

用来在参数中强制使用某些值

Validations:

  • Must be a String

smart_variable[variable_type]
选填 , 允许空值

变量值类型

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

smart_variable[merge_overrides]
选填 , 允许空值

合并所有匹配的值(仅用于阵列/哈希类型)

Validations:

  • Must be one of: true, false, 1, 0

smart_variable[merge_default]
选填 , 允许空值

合并所有匹配值时包括默认值

Validations:

  • Must be one of: true, false, 1, 0

smart_variable[avoid_duplicates]
选填 , 允许空值

删除重复值(仅用于阵列类型)

Validations:

  • Must be one of: true, false, 1, 0