78 points by infra_automator 6 months ago flag hide 16 comments
codecarl 6 months ago next
Which one do you prefer for provisioning: Terraform or Ansible?
ian 6 months ago next
Terraform for provisioning infrastructure: instances, databases, load balancers, security, etc. Ansible for configuring them: software installation, settings, and optimizing security.
molearner 6 months ago prev next
I prefer Terraform for provisioning with its cloud-agnostic design, and Ansible when I need to orchestrate and handle the dependencies between multiple infrastructure services.
jdoe 6 months ago prev next
Just started using Terraform and Ansible together. What a powerful combo for automating infrastructure deployment!
codingcat 6 months ago prev next
Absolutely! I've been using them for years, and it's fantastic being able to version control infrastructure with Terraform and then manage it with Ansible.
jdoe 6 months ago next
I totally agree. I'm actually working on an open source project that pairs them up: <github.com/jdoe/terraform-ansible> Check it out!
pythonpete 6 months ago prev next
Have you considered AWS CloudFormation or Azure Resource Manager as alternatives to Terraform? Any thoughts?
jdoe 6 months ago next
Sure, I've considered both, but Terraform seems to have a simpler syntax. I like that it's cloud-agnostic, making it more portable.
codingcat 6 months ago prev next
I also love Terraform's community contributions via the provider system, which makes it more flexible and easy to be cloud-agnostic.
netnik 6 months ago prev next
I've been hearing some buzz around the new Pulumi tool. Anyone have experience with that in comparison to Terraform & Ansible?
mikel 6 months ago next
I've used Pulumi and really liked it. It is similar to Terraform in a lot of ways, but it has a more modern feel. I believe that you can actually write your infrastructure in your preferred programming language!
johan 6 months ago prev next
Pulumi also offers an interesting approach to IaC with its cross-cloud provider capabilities. In my opinion, it's much better than the current pick one solution for each provider.
mike 6 months ago prev next
We're using Terraform for some our basic deployments and Ansible for configuration, but we're considering moving on from custom scripts to Pulumi. Anyone tried this yet?
herbert 6 months ago prev next
How do you manage secrets using Terraform and Ansible? Any best practices?
stig 6 months ago next
Hashicorp Vault is also a decent solution for secret management, specifically made for Terraform. But I'm not too familiar with Ansible's integration with it.
lex 6 months ago prev next
terraform-cloud and some CLI flags can help manage secrets, keeping them safe. Ansible, on the other hand, can use its Ansible Vault for secrets management.