I'm looking to integrate Terraform Enterprise with my infrastructure setup using an Ansible Inventory. The idea is to have a setup where whenever the Ansible inventory in a GitHub repository is updated, it triggers an action that generates a Terraform locals file. This file would then be utilized by my Terraform templates. My question is, should I keep this in a single repository or is it better to split it into two separate repositories?
4 Answers
Consider using AWX or Tower for this automation. They can help streamline the process of integrating Terraform with your Ansible inventory.
This sounds a bit over-engineered to me. It might complicate things unnecessarily when simpler solutions could work just as well.
We've actually gone with your approach before, and while it felt out of order, having a central inventory in Ansible is a big plus for management. As for repo structure, I'd say keep it all in one for simplicity's sake.
Just a heads up—Terraform is typically used for provisioning infrastructure, while Ansible is more about configuration management. It might be interesting to reverse your approach: let Terraform populate your Ansible inventory instead.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically