Hacker News new | ask | show | jobs
by thayne 1212 days ago
For this, systemd syntax is a lot better than yaml IMO.

In fact, I'd prefer if the tools you mentioned used something else besides yaml.

2 comments

> In fact, I'd prefer if the tools you mentioned used something else besides yaml.

Unfortunately, there norway way that's going happen.

> In fact, I'd prefer if the tools you mentioned used something else besides yaml.

To be fair, most of the popular DevOps tools can work with JSON instead of YAML just fine. And JSON can be easily generated from almost anywhere. I don't think you can work with systemd syntax as easily.

Out of curiosity, do you know any tools that can't use JSON but can use YAML? JSON is supposed to be valid YAML.
Every YAML parser supports JSON (maybe modulo a couple of weird Unicode chars), but YAML also has features (tags, start/end document) that you can’t express in JSON, so it depends on whether the tool relies on seeing those.