YAML supports a great feature called node anchors. And e.g. Docker compose files make use of that.
Can’t we make use of that in CoreOS files, too?
Resizing the partition root partition could e.g. take an input variable
So I tried something like this:
variant: fcos version: 1.3.0 parameters: main_disk: &main_disk /dev/vda # ... storage: disks: - device: *main_disk partitions: - label: root number: 4 # 0 means to use all available space size_mib: 0 resize: true
However, it seems we are missing some NOOP-YAML key in the CoreOs spec, as
parameters is a key FFCT now complained about:
$ fcct --pretty --strict # […] Error translating config: yaml: unmarshal errors: line 3: field parameters not found in type v1_3.Config