ADR-003 / Decision record

Cloud images and direct import, not golden templates

Every rebuild starts from a pinned, checksummed image, with no hand-built template to drift.

Context
Every guest needs a base operating system, and rebuilds have to be repeatable.
Decision
Guests boot from upstream cloud images that are pinned, checksum-verified and imported directly by OpenTofu. There are no hand-built golden templates.
Why
A hand-built template is a snowflake. Nobody remembers exactly what went into it, and it drifts. A pinned, checksummed image is the same every time.
Trade-off
First boot is slower, because configuration happens after boot rather than being baked in.
Revisit when
When first-boot time starts to matter. Packer images can replace the import step without changing the module interface.

Notes

Configuration that would otherwise live in a template is applied by Ansible after first boot (ADR-005). That way the same code that builds a guest also repairs it.