Add artifactapi_local_generic resource #12

Merged
benvin merged 1 commits from benvin/local-generic into main 2026-07-29 23:52:46 +10:00
Owner

Why

bootapi's image-based provisioning needs to host node rootfs tarballs on artifactapi. The backend already serves generic (raw-file) local repos, but the provider had no resource for them, so they couldn't be managed in Terraform. This adds one.

Change

  • Add artifactapi_local_generic (local repo, package_type=generic), mirroring artifactapi_local_rpm; register it in the provider.
  • Add tests and an example.

https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv

## Why bootapi's image-based provisioning needs to host node rootfs tarballs on artifactapi. The backend already serves generic (raw-file) local repos, but the provider had no resource for them, so they couldn't be managed in Terraform. This adds one. ## Change - Add `artifactapi_local_generic` (local repo, package_type=generic), mirroring `artifactapi_local_rpm`; register it in the provider. - Add tests and an example. https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
unkinben added 1 commit 2026-07-29 21:48:57 +10:00
Add artifactapi_local_generic resource
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
14b7c4bdcd
Adds a local generic (raw-file) repository resource so arbitrary binaries -- the
bootapi node rootfs tarballs -- can be hosted on artifactapi and managed in
Terraform. The backend already serves generic locals; only the provider surface
was missing.

- resource_local_generic.go: local repo with package_type=generic (mirrors
  local_rpm), registered in the provider.
- Tests + example.

Claude-Session: https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
benvin merged commit c7a2416518 into main 2026-07-29 23:52:46 +10:00
benvin deleted branch benvin/local-generic 2026-07-29 23:52:46 +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#12