TGViewer
Simple Engineer Notes Simple Engineer Notes @simpleengineernotes · 154 subscribers
Post #12 472
✈️ Terraform for VMware: Key Takeaways and Lessons from Managing Hundreds of VMs

Managing a large number of virtual machines can be challenging. As our infrastructure grew, we needed a better way to handle the complexity. That’s when we turned to Terraform to help us manage our VMware environment more efficiently. the gist from the article:

Lessons learned
1. Use remote state
2. It's tricky to catch more than 10 changes at one time
3. With great power comes great responsibility
4. Bulk changes can lead to performance degradation
5. Avoid configuration drift between VMware & terraform
6. Instead of recreating VM you can simply move it
7. Use prevent_destroy to avoid VMs deletion
8. Use simple & obvious structure to make entrance level lower
9. Use to ansible dynamic inventory based on tags
10. It's possible to add the missing functionality

Benefits

1. It's really easy to perform bulk updates
2. Re-create infra from nothing
3. Trackable changes
4. Single source of the truth

Want to try
1. Terraform pull request automation via Atlantis
2. Build green button in jenkins
3. Windows automation
4. Cloud-init for setting hostname like here (sry it's in RU)
5. Tests for terraform like for ansible

#article
Habr Автоматизируем деплой в vCloud с помощью Terraform и cloud-init Предыстория: выбирали сертифицированное облако для всякой там сертифицированной жизни. Остановились на кое-каком B2B-колоссе, руководство заключило договор, и отделу SRE пришлось работать с облаком на...
  • 👍 1
More from @simpleengineernotes
  1. Oct 6, 2026🏗 Terraform Meets Proxmox: Lessons from a VMware Migration I’ve learned some lessons from…
  2. Sep 12, 2026📚 The Structure of Scientific Revolutions I’ve just finished The Structure of Scientific…
  3. Jul 10, 2026💥 16-year-old KVM bug = VM Escape A new guest-to-host escape vulnerability in Linux KVM h…
  4. Jun 9, 2026⌚️apple watch + telegram = ? It requires - watchOS >= 26.0 - Telegram app >= 12.8 it's sli…
  5. May 29, 2026💩 CIFSwitch: a non-universal Linux local root vulnerability new LPE like root issue just…
  6. Apr 30, 2026💩copy.fail new extremely bad thing is coming https://copy.fail I've created the testusr w…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →