Combining Ansible and Terraform for CI – better together love story based on OVN-CI project
summary
A CI workflow that uses Terraform to provision OpenStack test nodes and produce a dynamic Ansible inventory (example: two instances) and Ansible to configure them is described and shown working in OVN‑CI. Concrete techniques: terraform local_file + template to emit hosts.ini, ansible-terraform module registration to capture outputs into playbooks, and an ssh devtcp streaming hack for real-time log streaming. Terraform state gives reliable cleanup; ordering gather_facts after reachability avoids flaky runs.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 1:05Ansible basics
- 4:31Terraform basics
- 9:25Combining Ansible and Terraform
- 14:19Tips and pitfalls
- 18:46Conclusion
related talks
25mThe Right Way to DevOps with Terraform and Ansible
31mUsing Ansible and Terraform Together
37mFrom IaC to InfraOps: Automating Day-2 Operations with Terraform Actions & Ansible
19mUsing the right tools for full Infrastructure Lifecycle Management
41mDynamic cloud infra with packer + terraform + ansible + jenkins
31mCommodified IaC using Terraform Cloud
42mDevOps workflows with Ansible Engine/Tower
33mBuilding applications with infrastructure as code
