terraform state pull
{
"hostname": "state.tf",
"environment": "production",
"status": "mostly healthy",
"monitoring": true,
"backups": true,
"documentation": false
}
terraform output
public_services = [
"minecraft",
"reverse-proxy",
"random weekend projects"
]
confidence_level = "terraform apply"
technical_debt = "known issue"
systemctl status homelab
● homelab.service - Self-hosted Infrastructure
Loaded: loaded (/etc/systemd/system/homelab.service)
Active: active (running) since 2021
Memory: more than expected
Tasks: increasing
cat disaster-recovery.md
1. Panic
2. Check logs
3. Panic with more information
4. Restore backup
5. Realize backup was never tested
6. Open Terraform
7. Hope for the best
terraform plan
Refreshing state...
Reading infrastructure...
Warning: Drift detected.
34 resources changed outside Terraform.
Nobody remembers why.
last
root pts/0 yesterday still logged in
root pts/1 3 days ago still logged in
root pts/2 12 days ago still logged in
fortune
There is nothing more permanent than a temporary solution.