2 ms·
For configuration I would very much prefer to have something that can be properly grepped/patched/generated with shell scripts if necessary. What openssh uses f
by fpoling 9y ago
For configuration I would very much prefer to have something that can be properly grepped/patched/generated with shell scripts if necessary. What openssh uses for its config mostly fulfill this, but ini file also are not that bad. Anything hierarchical like JSON/TOML/UCL etc. becomes very unattractive the moment one has to patch them from automated setup scripts.
- merlincorey 9y agoTemplates in configuration management can help with this a bit.
- webwurst 9y agoThere pretty mighty tools around to grep/patch/generate JSON data with shell scripts and they are made to deal with hierarchical data. https://stedolan.github.io/jq/manual/ https://stedolan.github.io/jq/manual/ http://jsonnet.org/ http://jsonnet.org/ Both are single binaries, so easy to run them where you need it. I don't know comparable stuff for the other mentioned formats, whenever I need to deal with yaml in scripts i run https://github.com/bronze1man/yaml2json https://github.com/bronze1man/yaml2json I would be totally fine with any format that can be converted to JSON on the fly. Of course I would love to have something like these tools more integrated within a shell, but the representing text format on the disk is not that important for me.