Skip to content

fix: add schema rules for 'baseurl' and 'metalink' in yum repo config (#5501)

Ani Sinha requested to merge anisinha/cloud-init:fix-metalink-schema into c9s

Jira: https://issues.redhat.com/browse/RHEL-46873

At least one of (or both) 'baseurl' or 'metalink' should be provided for yum
repository specification. Add schema changes to enforce it. Without this,
with just 'metalink' property set, one would get the schema validator error

\---
Error: Cloud config schema errors: yum_repos.epel-release: 'baseurl' is a required property
\---

Signed-off-by: Ani Sinha <anisinha@redhat.com>
(cherry picked from commit 7d35664ef8b85840f92f18cc48187f7284d227bc)

C10s MR: !100 (closed)

Merge request reports