Params

Param name Description
salt_variable
required

Validations:

  • Must be a Hash

salt_variable[variable]
required

Name of variable

Validations:

  • Must be a String

salt_variable[salt_state_id]
required

State ID

Validations:

  • Must be a number.

salt_variable[default_value]
optional , nil allowed

Default value of variable

Validations:

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

salt_variable[hidden_value]
optional , nil allowed

When enabled the parameter is hidden in the UI

Validations:

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

salt_variable[override_value_order]
optional , nil allowed

The order in which values are resolved

Validations:

  • Must be a String

salt_variable[description]
optional , nil allowed

Description of variable

Validations:

  • Must be a String

salt_variable[validator_type]
optional , nil allowed

Types of validation values

Validations:

  • Must be one of: regexp, list.

salt_variable[validator_rule]
optional , nil allowed

Used to enforce certain values for the parameter values

Validations:

  • Must be a String

salt_variable[variable_type]
optional , nil allowed

Types of variable values

Validations:

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

salt_variable[merge_overrides]
optional , nil allowed

Merge all matching values (only array/hash type)

Validations:

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

salt_variable[merge_default]
optional , nil allowed

Include default value when merging all matching values

Validations:

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

salt_variable[avoid_duplicates]
optional , nil allowed

Remove duplicate values (only array type)

Validations:

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