foreman_override_value

Smart class parameter override value.

Example Usage

# Autogenerated example with required keys
resource "foreman_override_value" "example" {
  match = {
    type = "hostgroup"
    value = "example_group"
  }
  omit = false
  smart_class_parameter_id = 1
  value = jsonencode({
    key = "value"
  })
}

Argument Reference

The following arguments are supported:

  • match - (Required) A map containing the match criteria. Must contain two keys: type and value.Type can be one of fqdn, hostgroup, domain or os
  • omit - (Optional) When set to true Foreman will not send this parameter in classification output. Default value is false.
  • smart_class_parameter_id - (Required) ID of the smart class parameter to override.
  • value - (Required) Smart parameter override value. Hashes and arrays must be JSON encoded.

Attributes Reference

The following attributes are exported:

  • match - A map containing the match criteria. Must contain two keys: type and value.Type can be one of fqdn, hostgroup, domain or os
  • omit - When set to true Foreman will not send this parameter in classification output. Default value is false.
  • smart_class_parameter_id - ID of the smart class parameter to override.
  • value - Smart parameter override value. Hashes and arrays must be JSON encoded.