1 Answer
- Newest
- Most votes
- Most comments
3
Please use YAML nodes anchors for reference https://yaml.org/spec/1.2.2/#692-node-anchors
answered 2 years ago
Relevant content
- Accepted Answerasked 3 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
Thanks for this excellent pointer. Does parallelcluster tolerate "non-canonical" keys such that one could place a sequence of anchor definitions under a key like
MyVars:
at the beginning of the yaml file?I've run a quick test and it looks like node anchors work with the ParallelCluster CLI, but you can't define a new section in the YAML file with your
MyVars
structure. Just define the anchor at the first occurrence of your variable and then refer to it later in the rest of the config file.