News for hackers. Stuff that matters.
Re:Terraform is not the golden hammer by weitzj on Sunday September 19, 2021 @11:46AM (#28585248)
And this setup is also encouraged by HashiCorp (at least I saw a talk by them). Use ansible for your “smart” sequential executions and Terraform as a sane wrapper for state.
Re:Terraform is not the golden hammer by Octabrain on Sunday September 19, 2021 @06:11PM (#28588421)
I’ve seen (and fixed) so many ugly messes at this point made as a result of mixing and wrapping tools with different purposes together like Ansible + Terraform that it’s something I strongly discourage. I recommend to keep the boundaries and responsibilities of the tools clear. In this case, Terraform for the creation of resources and Ansible for the configuration of those resources. In my opinion, this gives as a result a much simpler and maintainable ecosystem in the long run.
Re:Terraform is not the golden hammer by chucky_z on Sunday September 19, 2021 @02:11PM (#28586535)
I’ve found running Terraform via Ansible to be a pretty good experience.
Re:Terraform is not the golden hammer by weitzj on Sunday September 19, 2021 @04:46PM (#28587779)
So the other way around. Do you employ a GitOps approach this way?

I find it hard to figure out how to use GitOps with Ansible? How do you make a PullRequest which indicates that something should get deleted? You still would have to keep around an ansible playbook for the stuff you want to delete.