feat: add artifactapi_remote_github_rpm resource #13
Reference in New Issue
Block a user
Delete Branch "benvin/github-rpm-remote"
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 server gains a
github_rpmremote type that exposes a GitHub repo's releases as a metadata-only yum repository (synthesized repodata, no precache, downloads redirected to a backend remote). Surface it through the provider so these remotes are declarable as code alongside the other remote types.What
github_rpmremote resource (artifactapi_remote_github_rpm), reusing the sharedremoteResourceplumbing; add theNewRemoteGitHubRPMconstructor to match its siblings.releases_remoteattribute description: it now names the backend remote that serves download bytes for both the terraform remote (URL rewriting) and thegithub_rpmremote (302 redirect of.rpmdownloads).examples/resources/artifactapi_remote_github_rpm/main.tfwiring agithub_rpmremote to a genericgithub.comreleases_remote.Tests
Resource metadata type name (
artifactapi_remote_github_rpm), theNewRemoteGitHubRPMconstructor, and mapping ofpackage_type/base_url/releases_remote/patternsthrough the API model. The provider resource-count and expected-types assertions are updated.go build/vet/testgreen;terraform fmtclean.Dependency / release
Depends on the
github_rpmAPI surface in artifactapi (separate PR: unkin/artifactapi#107). The provider talks to the running server, so this can merge independently but only functions against a server that includes that PR. Cut a minor release (make minor) once merged, per the provider's tag-driven release convention.fc43ae1810tob26e651d45