News for hackers. Stuff that matters.
Re:Bashible: An Ansible-inspired deployment/automation tool ... by klysm on Monday March 23, 2020 @08:05PM (#22670339)
Portability is pretty important in the deployment/automation space and it's hard to beat bash in that capacity. It just sucks that bash sucks so much.
Re:Bashible: An Ansible-inspired deployment/automation tool ... by yjftsjthsd-h on Monday March 23, 2020 @08:26PM (#22670468)
Ansible already is pretty portable/flexible on target systems (the joys of being agentless and working mostly over SSH). You tend to need python and sometimes some specific modules (python-apt, for instance) on the target, but that's hardly a burden.
Re:Bashible: An Ansible-inspired deployment/automation tool ... by gautamdivgi on Monday March 23, 2020 @10:16PM (#22671175)
I think the Ansible modules can be executable binaries as well. I have heard of modules written in go.
Re:Bashible: An Ansible-inspired deployment/automation tool ... by yjftsjthsd-h on Monday March 23, 2020 @10:44PM (#22671368)
Having written Ansible modules in POSIX sh, I can assure you that this is absolutely the case:) Internally, Ansible modules are just normal executables that expect a very specific set of parameters and return a very specific JSON-encoded format. I believe there's also a newer pure-Python API, but I ignored it after realizing that it was much easier to just use the old one. (... and, of course, I really enjoyed the notion of writing a module in shell)
Re:Bashible: An Ansible-inspired deployment/automation tool ... by stevekemp on Tuesday March 24, 2020 @02:26AM (#22672496)
Agreed. Ansible works, but it works so very slowly because it zips and transfers scripts/binaries over to the remote host without caching.

I hacked up a simple system, in golang, which uses and SSH connection to run commands and transfer files. Of course I simplified the problem to only really uploading files, running commands, and simple template expansion. For a lot of services where you just need to download a binary and configure a config-file it works well but it's nowhere near as useful as Ansible's module system:

https://github.com/skx/deployr/

Re:Bashible: An Ansible-inspired deployment/automation tool ... by fulafel on Sunday March 29, 2020 @05:31AM (#22717545)
It's not so cut and dried, eg OS X ships with an ancient bash that's missing many features, and of course many operating systems (eg BSDs, Windows) and Linux distributions don't include bash by default.
Re:Bashible: An Ansible-inspired deployment/automation tool ... by MichaelMoser123 on Tuesday March 24, 2020 @05:13AM (#22673216)
bash 4.3 introduced a lot of changes (like addition of declare -n); there are many versions of bash, so it's not something set in stone.

https://lists.gnu.org/archive/html/info-gnu/2016-09/msg00012...