Add artifactapi_local_deb and artifactapi_remote_deb resources #14

Merged
benvin merged 1 commits from benvin/deb-local-remote into main 2026-08-11 23:41:33 +10:00
Owner

Adds first-class Terraform resources for Debian/apt package repositories so deb repos can be managed the same way as the existing rpm ones, ahead of the parallel server-side deb package_type support.

  • Add artifactapi_local_deb resource mirroring artifactapi_local_rpm, mapping to PackageType: deb, RepoType: local on the shared /api/v2/remotes API.
  • Register artifactapi_remote_deb via the shared remote resource (newRemoteResource("deb")) plus a NewRemoteDeb convenience constructor.
  • Add unit tests for the local deb model/API mappers, round-trip, metadata type name, and schema.
  • Bump the provider resource count and expected type-name lists in provider_test.go.
  • Document both resources in README.md and add examples/resources/artifactapi_{local,remote}_deb (Debian mirror base_url).

Build, vet, go mod tidy, pre-commit, and go test -race all pass.

Adds first-class Terraform resources for Debian/apt package repositories so `deb` repos can be managed the same way as the existing `rpm` ones, ahead of the parallel server-side `deb` package_type support. - Add `artifactapi_local_deb` resource mirroring `artifactapi_local_rpm`, mapping to `PackageType: deb, RepoType: local` on the shared /api/v2/remotes API. - Register `artifactapi_remote_deb` via the shared remote resource (`newRemoteResource("deb")`) plus a `NewRemoteDeb` convenience constructor. - Add unit tests for the local deb model/API mappers, round-trip, metadata type name, and schema. - Bump the provider resource count and expected type-name lists in provider_test.go. - Document both resources in README.md and add `examples/resources/artifactapi_{local,remote}_deb` (Debian mirror base_url). Build, vet, go mod tidy, pre-commit, and `go test -race` all pass.
unkinben added 1 commit 2026-08-11 21:50:43 +10:00
Add artifactapi_local_deb and artifactapi_remote_deb resources
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
b21892217a
benvin merged commit 5ee3a1d3d6 into main 2026-08-11 23:41:33 +10:00
benvin deleted branch benvin/deb-local-remote 2026-08-11 23:41:34 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/terraform-provider-artifactapi#14