36568ca53e
Declares a local generic (raw-file) repo for bootapi's node rootfs tarballs and wires the local_generic kind through the module. Depends on terraform-provider-artifactapi #12 releasing v0.1.4 (adds artifactapi_local_generic); the provider version pin is bumped to 0.1.4, so plan/validate stay red until that release is available. - config/local_generic/rootfs-images.yaml (new repo). - local_generic wiring: config.hcl, module variables.tf + main.tf, env terragrunt.hcl inputs; provider pin 0.1.3 -> 0.1.4. Claude-Session: https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
148 lines
4.0 KiB
Terraform
148 lines
4.0 KiB
Terraform
variable "remote_alpine" {
|
|
description = "Map of Alpine remote repositories"
|
|
type = map(object({
|
|
base_url = string
|
|
description = optional(string, "")
|
|
immutable_ttl = optional(number, 0)
|
|
mutable_ttl = optional(number, 7200)
|
|
immutable_patterns = optional(list(string), [])
|
|
mutable_patterns = optional(list(string), [])
|
|
stale_on_error = optional(bool, true)
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "remote_docker" {
|
|
description = "Map of Docker remote repositories"
|
|
type = map(object({
|
|
base_url = string
|
|
description = optional(string, "")
|
|
immutable_ttl = optional(number, 0)
|
|
mutable_ttl = optional(number, 300)
|
|
patterns = optional(list(string), [])
|
|
mutable_patterns = optional(list(string), [])
|
|
stale_on_error = optional(bool, true)
|
|
ban_tags_enabled = optional(bool, false)
|
|
ban_tags = optional(list(string), [])
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "remote_generic" {
|
|
description = "Map of generic remote repositories"
|
|
type = map(object({
|
|
base_url = string
|
|
description = optional(string, "")
|
|
immutable_ttl = optional(number, 0)
|
|
mutable_ttl = optional(number, 7200)
|
|
patterns = optional(list(string), [])
|
|
mutable_patterns = optional(list(string), [])
|
|
stale_on_error = optional(bool, true)
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "remote_goproxy" {
|
|
description = "Map of Go module proxy remote repositories"
|
|
type = map(object({
|
|
base_url = string
|
|
description = optional(string, "")
|
|
immutable_ttl = optional(number, 0)
|
|
mutable_ttl = optional(number, 300)
|
|
stale_on_error = optional(bool, true)
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "remote_helm" {
|
|
description = "Map of Helm chart remote repositories"
|
|
type = map(object({
|
|
base_url = string
|
|
description = optional(string, "")
|
|
immutable_ttl = optional(number, 0)
|
|
mutable_ttl = optional(number, 3600)
|
|
check_mutable = optional(bool, true)
|
|
immutable_patterns = optional(list(string), [])
|
|
stale_on_error = optional(bool, true)
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "remote_rpm" {
|
|
description = "Map of RPM remote repositories"
|
|
type = map(object({
|
|
base_url = string
|
|
description = optional(string, "")
|
|
immutable_ttl = optional(number, 0)
|
|
mutable_ttl = optional(number, 7200)
|
|
immutable_patterns = optional(list(string), [])
|
|
mutable_patterns = optional(list(string), [])
|
|
stale_on_error = optional(bool, true)
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "remote_pypi" {
|
|
description = "Map of PyPI remote repositories"
|
|
type = map(object({
|
|
base_url = string
|
|
description = optional(string, "")
|
|
immutable_ttl = optional(number, 0)
|
|
mutable_ttl = optional(number, 3600)
|
|
patterns = optional(list(string), [])
|
|
mutable_patterns = optional(list(string), [])
|
|
stale_on_error = optional(bool, true)
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "local_pypi" {
|
|
description = "Map of local PyPI repositories"
|
|
type = map(object({
|
|
description = optional(string, "")
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "local_rpm" {
|
|
description = "Map of local RPM repositories"
|
|
type = map(object({
|
|
description = optional(string, "")
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "local_generic" {
|
|
description = "Map of local generic (raw-file) repositories"
|
|
type = map(object({
|
|
description = optional(string, "")
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "local_terraform" {
|
|
description = "Map of local Terraform repositories"
|
|
type = map(object({
|
|
description = optional(string, "")
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "local_docker" {
|
|
description = "Map of local Docker repositories (real container registries)"
|
|
type = map(object({
|
|
description = optional(string, "")
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "virtual" {
|
|
description = "Map of virtual repositories"
|
|
type = map(object({
|
|
package_type = string
|
|
description = optional(string, "")
|
|
members = list(string)
|
|
}))
|
|
default = {}
|
|
}
|