artifactapi module: support mirrorlist on rpm/apk(alpine) remotes
Expose the provider v0.5.0 mirrorlist field through the config module so rpm and alpine(apk) remotes can declare extra upstream mirror base URLs (load-balanced with failover across base_url + mirrorlist). - remote_rpm / remote_alpine object vars gain mirrorlist = optional(list(string), []) - pass mirrorlist through to the corresponding remote resources - bump artifactapi provider constraint to ~> 0.5 Additive and optional; no real remote config changes (deferred follow-up).
This commit is contained in:
@@ -9,6 +9,7 @@ resource "artifactapi_remote_alpine" "this" {
|
|||||||
immutable_patterns = each.value.immutable_patterns
|
immutable_patterns = each.value.immutable_patterns
|
||||||
mutable_patterns = each.value.mutable_patterns
|
mutable_patterns = each.value.mutable_patterns
|
||||||
stale_on_error = each.value.stale_on_error
|
stale_on_error = each.value.stale_on_error
|
||||||
|
mirrorlist = each.value.mirrorlist
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "artifactapi_remote_docker" "this" {
|
resource "artifactapi_remote_docker" "this" {
|
||||||
@@ -74,6 +75,7 @@ resource "artifactapi_remote_rpm" "this" {
|
|||||||
immutable_patterns = each.value.immutable_patterns
|
immutable_patterns = each.value.immutable_patterns
|
||||||
mutable_patterns = each.value.mutable_patterns
|
mutable_patterns = each.value.mutable_patterns
|
||||||
stale_on_error = each.value.stale_on_error
|
stale_on_error = each.value.stale_on_error
|
||||||
|
mirrorlist = each.value.mirrorlist
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "artifactapi_remote_pypi" "this" {
|
resource "artifactapi_remote_pypi" "this" {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ variable "remote_alpine" {
|
|||||||
immutable_patterns = optional(list(string), [])
|
immutable_patterns = optional(list(string), [])
|
||||||
mutable_patterns = optional(list(string), [])
|
mutable_patterns = optional(list(string), [])
|
||||||
stale_on_error = optional(bool, true)
|
stale_on_error = optional(bool, true)
|
||||||
|
mirrorlist = optional(list(string), [])
|
||||||
}))
|
}))
|
||||||
default = {}
|
default = {}
|
||||||
}
|
}
|
||||||
@@ -78,6 +79,7 @@ variable "remote_rpm" {
|
|||||||
immutable_patterns = optional(list(string), [])
|
immutable_patterns = optional(list(string), [])
|
||||||
mutable_patterns = optional(list(string), [])
|
mutable_patterns = optional(list(string), [])
|
||||||
stale_on_error = optional(bool, true)
|
stale_on_error = optional(bool, true)
|
||||||
|
mirrorlist = optional(list(string), [])
|
||||||
}))
|
}))
|
||||||
default = {}
|
default = {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
artifactapi = {
|
artifactapi = {
|
||||||
source = "artifactapi.k8s.syd1.au.unkin.net/terraform-unkin/artifactapi"
|
source = "artifactapi.k8s.syd1.au.unkin.net/terraform-unkin/artifactapi"
|
||||||
version = "0.2.0"
|
version = "~> 0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user