chalkcfg¶
chalkcfg prints the config documents of the node it runs on, as chalkd writes them below /run/chalkos/config for the node's services, so a service or a shell on the node can read a value of its config. It names a kind by its name alone, such as Rack, and knows the kinds the image declares from the schemas in /etc/chalkos/schemas. chalkcfg has no network access and never prints Secrets: a service gets the values its kinds reference as systemd credentials. Nor does it print the documents of a kind the image withholds from the node's services, such as one whose documents hold secrets of their own: chalkd alone reads them, from the node's stored config.
In a NixOS module of an image, chalkos.kinds.<Kind>.get builds a chalkcfg command whose path the image's evaluation checks against the kind's options.
Examples¶
See also¶
- chalkcfg get: Print the node's documents of a kind, or list the kinds