I don't think my use case is valid any more, but here it is for posterity.
Polled metadata contains a list of configuration scripts. Using this mechanism each script could be written out as os-refresh-config scripts which get run during post-configure.
This has some issues however:
* os-apply-config executes executable scripts straight after it generates them
* each script needs to be invoked with its own set of inputs, which implies writing out a wrapper script with loads the inputs then executes the actual script
My current approach is to write out all of the metadata required to a json conf file, and just have a static python os-refresh-config script which loads the config, writes out scripts, and invokes them with the appropriate environment, and signals the result.
I don't think my use case is valid any more, but here it is for posterity.
Polled metadata contains a list of configuration scripts. Using this mechanism each script could be written out as os-refresh-config scripts which get run during post-configure.
This has some issues however:
* os-apply-config executes executable scripts straight after it generates them
* each script needs to be invoked with its own set of inputs, which implies writing out a wrapper script with loads the inputs then executes the actual script
My current approach is to write out all of the metadata required to a json conf file, and just have a static python os-refresh-config script which loads the config, writes out scripts, and invokes them with the appropriate environment, and signals the result.