action #169492
openper worker-class settings in salt states size:S
0%
Description
Motivation¶
We want worker-class specific settings which we can specify in workers.ini. That should be configurable with salt, e.g. in https://gitlab.suse.de/openqa/salt-states-openqa, but should use a new upstream openQA feature parsing a new to be designed syntax in workers.ini
Acceptance criteria¶
- AC1: worker-class specific settings can be specified in workers.ini
Suggestions¶
Allow additional sections like [class:tap]
in workers.ini
. The config parser of the worker would go though the list of classes and consider all settings of matching classes as well. The instance-specific settings in the numbered sections would still have precedence of course.
Further details¶
See conversation at: https://gitlab.suse.de/openqa/salt-pillars-openqa/-/merge_requests/924#note_685345
Original motivation¶
I think the salt states need a way to apply certain settings to workers with different values, depending on the class:
One example is of poo#168097, where it would be great to be able to set a variable to be applied to all workers, like REPO_MIRROR_HOST
with an overriden default, per class:
location-nue3:
- REPO_MIRROR_HOST=https://nue3.example.com
location-lab:
- REPO_MIRROR_HOST=https://lab.example.com
And have these settings applied to all workers, with said class.
Not sure if this should happen at the level of whatever manages the workers, or code in openQA