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
135 lines
3.8 KiB
Terraform
135 lines
3.8 KiB
Terraform
resource "artifactapi_remote_alpine" "this" {
|
|
for_each = var.remote_alpine
|
|
|
|
name = each.key
|
|
base_url = each.value.base_url
|
|
description = each.value.description
|
|
immutable_ttl = each.value.immutable_ttl
|
|
mutable_ttl = each.value.mutable_ttl
|
|
immutable_patterns = each.value.immutable_patterns
|
|
mutable_patterns = each.value.mutable_patterns
|
|
stale_on_error = each.value.stale_on_error
|
|
}
|
|
|
|
resource "artifactapi_remote_docker" "this" {
|
|
for_each = var.remote_docker
|
|
|
|
name = each.key
|
|
base_url = each.value.base_url
|
|
description = each.value.description
|
|
immutable_ttl = each.value.immutable_ttl
|
|
mutable_ttl = each.value.mutable_ttl
|
|
patterns = each.value.patterns
|
|
mutable_patterns = each.value.mutable_patterns
|
|
stale_on_error = each.value.stale_on_error
|
|
ban_tags_enabled = each.value.ban_tags_enabled
|
|
ban_tags = each.value.ban_tags
|
|
}
|
|
|
|
resource "artifactapi_remote_generic" "this" {
|
|
for_each = var.remote_generic
|
|
|
|
name = each.key
|
|
base_url = each.value.base_url
|
|
description = each.value.description
|
|
immutable_ttl = each.value.immutable_ttl
|
|
mutable_ttl = each.value.mutable_ttl
|
|
patterns = each.value.patterns
|
|
mutable_patterns = each.value.mutable_patterns
|
|
stale_on_error = each.value.stale_on_error
|
|
}
|
|
|
|
resource "artifactapi_remote_goproxy" "this" {
|
|
for_each = var.remote_goproxy
|
|
|
|
name = each.key
|
|
base_url = each.value.base_url
|
|
description = each.value.description
|
|
immutable_ttl = each.value.immutable_ttl
|
|
mutable_ttl = each.value.mutable_ttl
|
|
stale_on_error = each.value.stale_on_error
|
|
}
|
|
|
|
resource "artifactapi_remote_helm" "this" {
|
|
for_each = var.remote_helm
|
|
|
|
name = each.key
|
|
base_url = each.value.base_url
|
|
description = each.value.description
|
|
immutable_ttl = each.value.immutable_ttl
|
|
mutable_ttl = each.value.mutable_ttl
|
|
check_mutable = each.value.check_mutable
|
|
immutable_patterns = each.value.immutable_patterns
|
|
stale_on_error = each.value.stale_on_error
|
|
}
|
|
|
|
resource "artifactapi_remote_rpm" "this" {
|
|
for_each = var.remote_rpm
|
|
|
|
name = each.key
|
|
base_url = each.value.base_url
|
|
description = each.value.description
|
|
immutable_ttl = each.value.immutable_ttl
|
|
mutable_ttl = each.value.mutable_ttl
|
|
immutable_patterns = each.value.immutable_patterns
|
|
mutable_patterns = each.value.mutable_patterns
|
|
stale_on_error = each.value.stale_on_error
|
|
}
|
|
|
|
resource "artifactapi_remote_pypi" "this" {
|
|
for_each = var.remote_pypi
|
|
|
|
name = each.key
|
|
base_url = each.value.base_url
|
|
description = each.value.description
|
|
immutable_ttl = each.value.immutable_ttl
|
|
mutable_ttl = each.value.mutable_ttl
|
|
patterns = each.value.patterns
|
|
mutable_patterns = each.value.mutable_patterns
|
|
stale_on_error = each.value.stale_on_error
|
|
}
|
|
|
|
resource "artifactapi_local_terraform" "this" {
|
|
for_each = var.local_terraform
|
|
|
|
name = each.key
|
|
description = each.value.description
|
|
}
|
|
|
|
resource "artifactapi_local_pypi" "this" {
|
|
for_each = var.local_pypi
|
|
|
|
name = each.key
|
|
description = each.value.description
|
|
}
|
|
|
|
resource "artifactapi_local_rpm" "this" {
|
|
for_each = var.local_rpm
|
|
|
|
name = each.key
|
|
description = each.value.description
|
|
}
|
|
|
|
resource "artifactapi_local_docker" "this" {
|
|
for_each = var.local_docker
|
|
|
|
name = each.key
|
|
description = each.value.description
|
|
}
|
|
|
|
resource "artifactapi_local_generic" "this" {
|
|
for_each = var.local_generic
|
|
|
|
name = each.key
|
|
description = each.value.description
|
|
}
|
|
|
|
resource "artifactapi_virtual" "this" {
|
|
for_each = var.virtual
|
|
|
|
name = each.key
|
|
package_type = each.value.package_type
|
|
description = each.value.description
|
|
members = each.value.members
|
|
}
|