| page_title | cozystack_package_source Resource - cozystack |
|---|---|
| subcategory | |
| description | A Cozystack PackageSource (cluster-scoped, cozystack.io group): defines where packages come from and their variants. The spec is a platform document, surfaced as JSON. |
A Cozystack PackageSource (cluster-scoped, cozystack.io group): defines where packages come from and their variants. The spec is a platform document, surfaced as JSON.
resource "cozystack_package_source" "custom" {
name = "custom.apps"
spec = jsonencode({
sourceRef = { kind = "OCIRepository", name = "custom-apps", namespace = "cozy-system" }
variants = [{ name = "default" }]
})
}name(String) PackageSource name (metadata.name). Immutable.
spec(String) Full PackageSource spec as JSON (sourceRef,variants).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:
# Cluster-scoped: import by name only.
terraform import cozystack_package_source.example name