Should I Use One or Two Repos for Terraform and Ansible Integration?

0
11
Asked By CuriousCat42 On

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

Answered By AWXenthusiast On

Consider using AWX or Tower for this automation. They can help streamline the process of integrating Terraform with your Ansible inventory.

Answered By TechieTinker On

This sounds a bit over-engineered to me. It might complicate things unnecessarily when simpler solutions could work just as well.

Answered By DevOpsNinja On

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.

Answered By InfraGuru91 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.