Open corang opened 8 months ago
Do you think this would be resolved by defenseunicorns/maru-runner#82 ? If we implemented the matrix functionality it sounds like it would solve the use case of referencing os/arch. cc @zachariahmiller
It seems like in a scenario where things would always be static that at least for things like platform/arch the matrix functionality would resolve the issue given in the example and also has a bunch of other helpful uses. That being said, I do like the idea of a variable defined in a uds run task file having the ability to have its default set with command in one line.
I think these things could coexist nicely in the task files.
Outside of platform/arch, do you have an example of needing a reusable value that requires a bash script to set? I'm not opposed to the idea, I think the runner lends itself to more freedom/flexibility, just want to understand the use case (again outside of platform/arch)
off the top of my head, possibly generating a cert, a random string (say for node token or unique naming) or something like that.
👍 feel free to implement @corang, thanks for the inputs @zachariahmiller
@corang doing some backlog grooming this morning. Is this issue still something you need/want?
I'd say yes, I dont necessarily have a use case for it right now but i think it's a valuable feature
Is your feature request related to a problem? Please describe
There are some variables that change depending on os/hardware that need to referenced in multiple places. The current solution is to have each task that needs this info reference a task that sets those variables. It would be really nice to be able to set default values for those vars in the variables field at the top of the tasks.yaml file
Current:
Wanted:
Describe the solution you'd like