4 ms·
Not a snarky question : what about having data and config in yml, and some high level tool like ansible or terraform and the occasional bash? You loop and bran
by courgette 4y ago
Not a snarky question : what about having data and config in yml, and some high level tool like ansible or terraform and the occasional bash?
You loop and branch in ansible/terraform
I hate that setup but also I have a hard time thinking of something else
- chologrande 4y agoLooping in ansible/terraform is exactly the problem. Logic and control flow in YAML/hcl is a nightmare. Plus there's no debugging! You can't set breakpoints in a yaml file or HCL. Adding more YAML to be parsed by other YAML is just terrible at scale.
- senorsmile 4y agoYou definitely can in Ansible.
- chologrande 4y agoyou _can_. but _should_ you? Ansible / Terraform are great when you're declarative, but once you start adding too much logic, things get hairy.
- duped 4y agoI don't think there's a meaningful distinction between configuration and code in a CI pipeline. This is what people try to do, and it's frankly a massive waste. The problem is the attempt to make a distinction when there cannot be one.