News for hackers. Stuff that matters.
Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by mongol on Wednesday March 13, 2019 @12:13AM (#19375665)
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

Edit: I have not tried it

Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by calgoo on Wednesday March 13, 2019 @10:57AM (#19379257)
I 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.
Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by flossyspeaker on Wednesday March 13, 2019 @11:19AM (#19379516)
I know of one Ansible config file: ansible.cfg. Are you talking about the config files that you deploy to the servers?
Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by calgoo on Wednesday March 13, 2019 @11:58AM (#19379951)
sorry, 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.
Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by StreamBright on Wednesday March 13, 2019 @04:57AM (#19376909)
Same here. We should create an efficient compiled version of Ansible, same feature set much faster execution, single configuration file flavor (only yaml)
Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by mongol on Wednesday March 13, 2019 @01:04PM (#19380802)
My 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.
Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by StreamBright on Sunday March 17, 2019 @03:04PM (#19415738)
Yes, you are thinking about the same. I would just use YAML for the things that can be configured.
Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by GordonS on Thursday March 14, 2019 @02:20PM (#19391893)
Is 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.

Re:Rebuilding My Personal Infrastructure With Alpine Linux a... by StreamBright on Sunday March 17, 2019 @03:03PM (#19415734)
It is, Ansible is pretty slow at scale (100+ servers).