Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 2.19 KB

package.md

File metadata and controls

59 lines (43 loc) · 2.19 KB
page_title cozystack_package Resource - cozystack
subcategory
description A Cozystack platform Package (cluster-scoped, cozystack.io group): installs a package variant from a PackageSource into HelmReleases.

cozystack_package (Resource)

A Cozystack platform Package (cluster-scoped, cozystack.io group): installs a package variant from a PackageSource into HelmReleases.

Example Usage

# Package is a cluster-scoped platform resource (cozystack.io group).
resource "cozystack_package" "monitoring" {
  name    = "cozystack.monitoring"
  variant = "default"

  # Optional per-component overrides as JSON.
  components = jsonencode({
    grafana = { enabled = true }
  })
}

Schema

Required

  • name (String) Package name (metadata.name). Immutable.

Optional

  • components (String) Per-component overrides as a JSON object keyed by release name ({"<release>": {"enabled": false, "values": {…}}}).
  • ignore_dependencies (List of String) Package source dependencies to skip installing.
  • variant (String) Variant to use from the PackageSource.
  • wait_for_ready (Boolean) Block on create/update until the Ready condition is true and any server-generated outputs the resource exposes are readable.
  • wait_timeout (String) Maximum time to wait when wait_for_ready is set (Go duration, e.g. 10m). Readiness and outputs share this budget; outputs that never appear leave a warning and their attributes stay null until the next refresh.

Read-Only

  • chart_version (String) Deployed chart version (status.version).
  • id (String) Object name (cluster-scoped).
  • ready (Boolean) Whether the application's Ready condition is true.
  • uid (String) Server-assigned object UID (metadata.uid). Stable across updates; changes on recreate.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Packages are cluster-scoped: import by name only.
terraform import cozystack_package.monitoring cozystack.monitoring