osbuild-composer/config: support specifying distro aliases
Add new configuration option `distro_aliases`, which is a map of strings, allowing to specify distro name alias for supported distributions. Define aliases for RHEL major versions without the minor version specified. For now, the distro aliases map is not used by any API implementation and it is ignored. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
43e87632fb
commit
cdf57e5bc1
4 changed files with 38 additions and 9 deletions
4
cmd/osbuild-composer/testdata/test.toml
vendored
4
cmd/osbuild-composer/testdata/test.toml
vendored
|
|
@ -18,3 +18,7 @@ image_type_denylist = [ "qcow2" ]
|
|||
|
||||
# overrides the default rhel-* configuration
|
||||
[weldr_api.distros."rhel-*"]
|
||||
|
||||
[distro_aliases]
|
||||
rhel-8 = "rhel-8.9"
|
||||
rhel-9 = "rhel-9.3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue