参数

参数名字 描述
smart_variable
必填

Validations:

  • Must be a Hash

smart_variable[variable]
必填

Name of variable

Validations:

  • Must be String

smart_variable[puppetclass_id]
选填 , 允许空值

Puppet class ID

Validations:

  • Must be a number.

smart_variable[default_value]
选填 , 允许空值

Default value of variable

Validations:

  • Must be String

smart_variable[hidden_value]
选填 , 允许空值

When enabled the parameter is hidden in the UI

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

smart_variable[override_value_order]
选填 , 允许空值

解析数值的指令

Validations:

  • Must be String

smart_variable[description]
选填 , 允许空值

Description of variable

Validations:

  • Must be String

smart_variable[validator_type]
选填 , 允许空值

Types of validation values

Validations:

  • Must be one of: regexp, list.

smart_variable[validator_rule]
选填 , 允许空值

Used to enforce certain values for the parameter values

Validations:

  • Must be String

smart_variable[variable_type]
选填 , 允许空值

Types of variable values

Validations:

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

smart_variable[merge_overrides]
选填 , 允许空值

Merge all matching values (only array/hash type)

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

smart_variable[merge_default]
选填 , 允许空值

Include default value when merging all matching values

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

smart_variable[avoid_duplicates]
选填 , 允许空值

Remove duplicate values (only array type)

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’