artifactapi module: support mirrorlist on rpm/apk(alpine) remotes #24
Reference in New Issue
Block a user
Delete Branch "benvin/mirrorlist-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The artifactapi Terraform provider v0.5.0 (now on the artifactapi terraform registry) adds a
mirrorlistfield on remote rpm/deb/apk(alpine) repos — extra upstream mirror base URLs that are load-balanced with failover acrossbase_url+mirrorlist. This teaches the config module to accept and pass it through so a future PR can enable it on a real remote (e.g. fedora).How
modules/artifactapi/variables.tf: addmirrorlist = optional(list(string), [])to the remote_rpm and remote_alpine object variables only.modules/artifactapi/main.tf: passmirrorlist = each.value.mirrorlistintoartifactapi_remote_rpmandartifactapi_remote_alpine.modules/artifactapi/versions.tf: bump theartifactapiprovider constraint0.2.0->~> 0.5.Notes
[]).debremote type, so nothing to add there.mirror_strategywas intentionally omitted: provider v0.5.0's schema exposes onlymirrorlist, not a strategy attribute (verified viaterraform providers schema). Adding it would breakvalidate. If a strategy field lands in a later provider release, it can be plumbed as a follow-up.config/remote_*/file changed — enabling mirrorlist on an actual remote (e.g. fedora) is a deliberate follow-up.Validation
terraform initresolved provider v0.5.0 from the artifactapi registry;terraform validate= Success,terraform fmt -checkclean,tflintclean.