Skip to content

feat: add test scenarios for local APT mirror and APT cacher #78

Description

@t0kubetsu

Context

Part of the cross-repo effort tracked in range42-catalog#162 — feat: local APT mirror/cache to speed up Debian/Ubuntu VM provisioning.

The catalog issue defines the full architecture (apt-cacher-ng + apt-mirror box templates, Ansible roles, Docker stacks). This issue tracks the range42-playbooks deliverable: reference scenarios that exercise both options end-to-end using the r42playbooks generator.


What this adds

Two generated scenarios using the dual-lan subnet layout (no network policy):

test_apt_cacher

Validates the apt-cacher-ng caching-proxy path.

LAN VM IP
lan1 (vmbr150) lan1-apt-cache-00 192.168.150.10
lan2 (vmbr151) lan2-debian-jump-00 192.168.151.10
lan2 (vmbr151) lan2-ubuntu-jump-00 192.168.151.11

test_apt_mirror

Validates the full local-mirror path (nginx-served apt-mirror).

LAN VM IP
lan1 (vmbr150) lan1-apt-mirror-00 192.168.150.10
lan2 (vmbr151) lan2-debian-jump-00 192.168.151.10
lan2 (vmbr151) lan2-ubuntu-jump-00 192.168.151.11

Both scenarios were generated with:

r42playbooks new <name> --subnet dual-lan --box "<server>:subnet=lan1" --box "debian-jump:subnet=lan2" --box "ubuntu-jump:subnet=lan2"

Acceptance criteria

  • test_apt_cacher deploys cleanly end-to-end on a Proxmox node
  • test_apt_mirror deploys cleanly end-to-end on a Proxmox node
  • Debian and Ubuntu client VMs on lan2 resolve packages through the lan1 server
  • Scenarios are regeneratable from their scenario.r42.yml with no manual edits

Related

  • range42-catalog#162

Metadata

Metadata

Assignees

Labels

featNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions