Files
terraform-provider-artifactapi/examples/resources/artifactapi_virtual/main.tf
T
unkin-agent b3a897cc20
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
use placeholder host in docs and examples
2026-10-17 15:40:14 +11:00

46 lines
1.1 KiB
Terraform

terraform {
required_providers {
artifactapi = {
source = "artifactapi.example.com/terraform-unkin/artifactapi"
version = "0.0.1"
}
}
}
provider "artifactapi" {
endpoint = "https://artifactapi.example.com"
}
# Helm remotes to be merged into a virtual repository
resource "artifactapi_remote_helm" "jetstack" {
name = "jetstack"
base_url = "https://charts.jetstack.io"
description = "Jetstack Helm charts (cert-manager)"
immutable_ttl = 0
mutable_ttl = 3600
}
resource "artifactapi_remote_helm" "hashicorp_helm" {
name = "hashicorp-helm"
base_url = "https://helm.releases.hashicorp.com"
description = "HashiCorp Helm charts"
immutable_ttl = 0
mutable_ttl = 3600
}
# Virtual repository merges multiple remotes of the same package type
# into a single endpoint. Earlier members have higher priority for
# duplicate entries.
resource "artifactapi_virtual" "helm" {
name = "helm"
package_type = "helm"
description = "All Helm repos merged"
members = [
artifactapi_remote_helm.jetstack.name,
artifactapi_remote_helm.hashicorp_helm.name,
]
}