| 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. |
A Cozystack platform Package (cluster-scoped, cozystack.io group): installs a package variant from a PackageSource into HelmReleases.
# 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 }
})
}name(String) Package name (metadata.name). Immutable.
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 theReadycondition is true and any server-generated outputs the resource exposes are readable.wait_timeout(String) Maximum time to wait whenwait_for_readyis 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.
chart_version(String) Deployed chart version (status.version).id(String) Object name (cluster-scoped).ready(Boolean) Whether the application'sReadycondition is true.uid(String) Server-assigned object UID (metadata.uid). Stable across updates; changes on recreate.
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