-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RF[DE]: Drop the use of struct
s for the YAML config data
#905
Comments
A small point, but I think you're talking about NodeConf, not NodeInfo. |
Right, I mix those up. In my thought experiment it'd work such that the NodeConf gets pulled into the |
Another point that just occurred to me, there could/should be a special nodeprofile entry, call it NODESCHEMA, which defines what a node structure should look like (per what included "official" WW overlays expect from nodes/nodeprofiles). That'd allow verifying that node configs have the correct/expected structure while still leaving things completely open-ended for individual sites to replace/modify/override things as needed. |
|
I couldn't wrap my head around how/when to manage writing new values out properly, but what you state here makes that a very simple process, any |
Was discussing this with @anderbubble yesterday and wanted to see how it might work. The idea is that instead of using a
struct
for the NodeInfo, that all the data in the nodes.conf would be left unstructured. A tiny example of this is in the gist https://gist.github.com/griznog/fab22104ed47ab66d512286609fa8caa (with mad props to my coding partner ChatGPT4 who did the heavy lifting there.)The code there reads a sample
nodes.conf
pulled from a subset of my cluster config and uses a modifiedifcfg.ww
template to dump out the network config for the nodes in thenodes.conf
. This approach would allow admins complete freedom in what they can add/use in the node config, including nesting any arbitrary tags as deeply as needed.As this approach would mean that WW no longer enforces a structure on the node or cluster config, the WW and/or OpenHPC projects could then provide working "default" schemas and templates for cluster environments, the community can then vote with its feet on how to best organize a cluster config. Along with a repository for overlays, this would allow more easy exploration of cluster-management-space and development of more complex config-driven templates/overlays.
The text was updated successfully, but these errors were encountered: