3 ms·
I have lately been thinking an Ansible-like approach but using compiled code, maybe using Go, could be a way to go. So I went looking for that, and found Sup. I
by mongol 8y ago
I have lately been thinking an Ansible-like approach but using compiled code, maybe using Go, could be a way to go. So I went looking for that, and found Sup. It was not what I had in mind but worth a closer look.
https://news.ycombinator.com/item?id=12183370 https://news.ycombinator.com/item?id=12183370
Edit: I have not tried it
- StreamBright 8y agoSame here. We should create an efficient compiled version of Ansible, same feature set much faster execution, single configuration file flavor (only yaml)
- mongol 8y agoMy idea is different. Instead of playbook yaml, playbook go source, that compiles to a fat binary that is transferred over ssh. That decreases the dependencies to ssh only on the target hosts (no python). The framework would include an idempotent API that matches all the tasks that Ansible provides.
- StreamBright 8y agoYes, you are thinking about the same. I would just use YAML for the things that can be configured.
- GordonS 8y agoIs execution speed really an issue? Unless you're parsing millions of lines of YAML, it's difficult to believe that's a bottleneck. I reckon a good benefit would be static typing and intellisense.
- StreamBright 8y agoIt is, Ansible is pretty slow at scale (100+ servers).
- calgoo 8y agoI have been contemplating adding a small DSL that compiles to Ansible, as i find writing Ansible config files very tedious and boring. As its just YAML, it should be quite easy to generate the output.
- flossyspeaker 8y agoI know of one Ansible config file: ansible.cfg. Are you talking about the config files that you deploy to the servers?
- calgoo 8y agosorry, I call the YAML playbooks config files sometimes. but yes, something that can compile down to the YAML files or other tools as well. Abstract away the abstraction basically.