Params

Param Name Description
id
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
smart_variable
Required

Value: Must be a Hash
smart_variable[variable]
Optional

Nombre de variable


Value: Must be String
smart_variable[puppetclass_id]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

ID de clase Puppet


Value: Must be a number.
smart_variable[default_value]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Valor por defecto de la variable


Value: Must be String
smart_variable[override_value_order]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

El orden en el cual se resuelven los valores


Value: Must be String
smart_variable[description]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Descripción de la variable


Value: Must be String
smart_variable[validator_type]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Tipos de valores de validación


Value: Must be one of: regexp, list.
smart_variable[validator_rule]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Se utiliza para forzar ciertos valores para los parámetros


Value: Must be String
smart_variable[variable_type]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Tipos de valores de variables


Value: Must be one of: string, boolean, integer, real, array, hash, yaml, json.
smart_variable[merge_overrides]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Combinar todos los valores coincidentes (sólo de tipo array/hash)


Value: Must be 'true' or 'false'
smart_variable[avoid_duplicates]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Eliminar valores duplicados (sólo de tipo array)


Value: Must be 'true' or 'false'