Live data from Hacker News

Bashible: An Ansible-inspired deployment/automation tool written in Bash DSL

github.com

81–86 of 86 posts

Re: Bashible: An Ansible-inspired deployment/automation tool written in Bash DSL

#81

Earlier quoted context omitted.

Is ansible really reusible? We had an ansible deploy for bringing up MySQL database. I stopped using the codebase and came back to it months later; and I spent two days trying to get it to work (it was an unholy combination of local and community yaml) and eventually just rewrote the damn thing as a bare sequence on literal MySQL (in 20 minutes I might add) and disabled verification - definitely worst practices - to…

Some of that could be due to versioning... Ansible's releases always have breaking changes, so you can get into trouble if your setup is vastly different from when the playbooks were created. I think this is part of the point of a dedicated control machine, but unfortunately the documentation (last I checked) seems to neglect the importance of it. Along the same lines, there are also .cfg files and roles that can liv…

> the point of a dedicated control machine

Usually virtualenv + requirements.txt + all configuration inside playbook repository should make for a painless experience without one (save for speed).

Re: Bashible: An Ansible-inspired deployment/automation tool written in Bash DSL

#82

Bash should be recognized as the tech equivalent of asbestos.

Not only Bash but everything that is not compiled. The amount of grief interpreted languages introduced is outrageous.

> everything that is not compiled.

Agreed. I see fixes like this in bashible that would have never happened in a compiled language with static types:

https://github.com/mig1984/bashible/commit/63fcc766d0244a6fb...

Re: Bashible: An Ansible-inspired deployment/automation tool written in Bash DSL

#83

Earlier quoted context omitted.

Y'all just have bias against the string system. Writing decent code in bash is just as possible as any other language. I stick to POSIX sh but same difference.

Why POSIX sh? Bash is everywhere. I once in my career had access to and needed jobs performed on a mainframe with AIX running. It had bash, it had ruby, it had day, it had fish shell. I couldn't and can't understand why people insist on asceticism (Korn shell, POSIX sh) when nicer options are available.

*zsh ... Not "day"

Re: Bashible: An Ansible-inspired deployment/automation tool written in Bash DSL

#85
post #12

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.

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 written in Bash DSL

#86
post #21

Earlier quoted context omitted.

I'd argue that Ansible is using a DSL, just one that happens to be expressed in YAML. I mean, it has loops, conditionals, various forms of subroutines (roles, plays that can be included)... I don't think that using a YAML format rather than being C-shaped makes it any less a DSL.

At that point you should at least use something elegant like s-expressions. There are so many things I hate about ansible.

Spire? https://epiccastle.io/spire/
Post reply on HN