-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add el10 mock config #11631
base: rpm/develop
Are you sure you want to change the base?
add el10 mock config #11631
Conversation
#config_opts['module_setup_commands'] = [ | ||
# ('enable', 'foreman-devel:el10'), | ||
#] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't exist for EL10 yet
#[foreman] | ||
#name=foreman | ||
#baseurl=https://yum.theforeman.org/nightly/el10/x86_64/ | ||
# | ||
#[foreman-plugins] | ||
#name=foreman-plugins | ||
#baseurl=https://yum.theforeman.org/plugins/nightly/el10/x86_64/ | ||
# | ||
#[katello] | ||
#name=katello | ||
#baseurl=https://yum.theforeman.org/katello/nightly/katello/el10/x86_64/ | ||
# | ||
#[puppet-8] | ||
#name=puppet-8 | ||
#baseurl=https://yum.puppetlabs.com/puppet8/el/10/x86_64/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't exist for EL10 yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about using more of the approach taken with includes. For example, /etc/mock/centos-stream+epel-10-x86_64.cfg
is
config_opts["koji_primary_repo"] = "epel"
include('templates/centos-stream-10.tpl')
include('templates/epel-10.tpl')
config_opts['root'] = 'centos-stream+epel-10-x86_64'
config_opts['description'] = 'CentOS Stream 10 + EPEL'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
It does rely on mock configs being up to date, but I think that's safe to rely on. Looking at /etc/mock/templates/epel-10.tpl
we can then use config_opts['dnf.conf'] += """
to add our own repos.
the templates is where I got the stuff from yeah… |
Let me phrase it different: I'd like to minimize our mock configs. Perhaps even split it so we can layer them, just like in real life. So a config for client bits (which is probably plain EL10), a config for base foreman + plugins, and katello. |
No description provided.