Automated Deployment
Cheat sheet · https://pcornel.dk/topic.php?topic=3693
Answer
Automated deployment chains provisioning steps — clone template, set CPU/RAM/disk/network, inject identity with cloud-init or Sysprep, configure the guest, register in monitoring — into a pipeline that runs the same way every time.
Remember
- Each stage needs its own success check.
- Partial builds must be cleaned up or resumable.
- IP and name allocation must be atomic.
First checks
CI pipeline run— build → test → deployterraform apply -auto-approve (pipeline)— applyansible-playbook post-deploy.yml— configure
Commands
terraform plan- Show the changes Terraform would make without applying them.
Verify in this order
commit → pipeline → provision → configure → validate
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3693