asperan

joined 1 year ago
[–] asperan 2 points 6 months ago (2 children)

Well, yeah I think he’s saying that Ansible is the wrong tool and he’s making a better one. It’s also not just that YAML isn’t “enough for a task”. It’s extremely error-prone and add unhygienic templates onto an already janky language is just asking for trouble.

Fair enough, I guess I have never had to use Ansible for big enough projects where these kinds of error spring up more frequently.

Tbf you agreed with half the points you quoted…

Well, the only one that I agree completely with is the stdout/stderr one. All the others have some kind of caveat that prevents me to support OP claims.

In any case, on the language choice we are in agreement: as of now Raku is not a popular language, so requiring a user of the system to know the language cannot provide much appeal to the project.

[–] asperan 3 points 6 months ago (4 children)

TL;DR: the project is nice and welcome, most of development reasons seem straw man arguments ("I wanted to do it" would have been better).

Detailed comment (Wall of text)I have some counter-arguments to the reasons of OP frustration with Ansible:

YAML based declarative DSL really stinks on complex tasks as it lacks the flexibility that imperative languages have.

Although this point can be agreeable, it doesn't provide an example of what amount of flexibility someone (the author) could need. So this make me think "maybe OP wanted to use Ansible for some problem that Ansible cannot resolve". Also, Ansible supports Jinja templates, which add expressiveness to it.

YAML is not even a programming language, and you gonna pay the price very soon.

This is goes with the previous point, and this is a subjective argument too: if YAML is enough for a task, there is no price to pay, at any time; if YAML is not enough, there has been a miscalculation during the tool choice.

To keep ansible code clean and simple, extra efforts are required, one need to refactor out all the complexity from YAML to python modules and this feels like "why I even start using YAML DSL"?

I agree that, without a lot of experience (myself included), Ansible code is hard to maintain. But, in my experience, most of the complexity can be abstracted by using templates. If there is the need of something more complex, maybe a script fits more the job.

Ansible reports are frustrating as I always need to add these debug tasks to show real STDOUT/STDERR emitted from commands, where it should just work out of the box.

Absolutely agree. A simpler way to debug or print stdout/stderr (such as a task-level option) would be welcome.

Ansible ties me to the idea of "running on a host," where sometimes I need to run tasks not tied to hosts, yes, you can still use "ansible_connection=local" but this feels awkward.

I guess this is subjective, but IMO if it feels awkward it may not be the best way to do (still, there are some cases where it is the only way to follow).

The Web UI is nice and clean, I'd like to have one also in Ansible. This is surely a +1 for Sparky.

As for the example, from someone that does not know Raku (but who is a developer, i.e. me), it does not seem much simpler than an Ansible playbook.

[–] asperan 1 points 6 months ago

Hi, just a disclaimer as I've never used Minio in a serious/professional project, only in home fiddling and school projects, so I may not suggest the optimal way to do things.

You can create Access Keys (Service Accounts) in Minio for your application, and make the bucket(s) accessible only by this account (private with an access policy, I guess). In your JS app, if I remember correctly, you should be able to specify an access key to use for the connection.

Access keys are credentials, so be sure to store them (and pass them around) safely.

I hope this gives you at least a general direction to investigate, happy tinkering!

[–] asperan 2 points 1 year ago

It seems that feature is not yet implemented, but maybe someone will start working on it

Source: https://github.com/aeharding/wefwef/issues/114