Lars Wirzenius on Nostr: Any program with a complicated configuration file benefits from a "show me to actual ...
Any program with a complicated configuration file benefits from a "show me to actual configuration you're using".
I like to add to my programs that get started from the command line a sub-command to do this: "sshca --config test.yaml config" read the configuration file test.yaml, applies it to form a run-time config, and writes out the complete configuration.
This makes it easier to debug a configuration. I prefer this over using strace a service to see what it's doing.
#rant
Published at
2024-06-29 10:45:37Event JSON
{
"id": "07188023ececc67e7493ea9963767beeaf5c9023c882cea4555783111ad66489",
"pubkey": "b10dc1f389e232d431638f9ab5e479818b1bfab197d62e420c170baf0bec09cb",
"created_at": 1719657937,
"kind": 1,
"tags": [
[
"t",
"rant"
],
[
"proxy",
"https://toot.liw.fi/users/liw/statuses/112699502609613108",
"activitypub"
]
],
"content": "Any program with a complicated configuration file benefits from a \"show me to actual configuration you're using\".\n\nI like to add to my programs that get started from the command line a sub-command to do this: \"sshca --config test.yaml config\" read the configuration file test.yaml, applies it to form a run-time config, and writes out the complete configuration.\n\nThis makes it easier to debug a configuration. I prefer this over using strace a service to see what it's doing.\n\n#rant",
"sig": "89d703bb200e7f88ffaf1473f3c050a658b0367fc0aad58368c5533d3df23cc33546a1c1dd9209757c9a145abf81e7a2b5445a08a5083e8c16e14f2394935848"
}