koji: Switch to rpmautospec mock plugin in staging
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
8fe5517885
commit
d566528276
3 changed files with 29 additions and 3 deletions
|
@ -15,3 +15,11 @@ config_opts['dnf_warning'] = False
|
|||
config_opts["dnf5_avoid_opts"] = {
|
||||
"group": ["--allowerasing"],
|
||||
}
|
||||
|
||||
{% if env == "staging" %}
|
||||
config_opts['plugin_conf']['rpmautospec_enable'] = True
|
||||
config_opts['plugin_conf']['rpmautospec_opts'] = {
|
||||
'requires': ['rpmautospec'],
|
||||
'cmd_base': ['/usr/bin/rpmautospec', 'process-distgit'],
|
||||
}
|
||||
{% endif %}
|
||||
|
|
|
@ -72,6 +72,7 @@
|
|||
- koji-containerbuild-builder
|
||||
- strace
|
||||
- mock
|
||||
- mock-rpmautospec
|
||||
- kernel-firmware
|
||||
- kernel-modules
|
||||
- rsyslog
|
||||
|
@ -102,10 +103,19 @@
|
|||
|
||||
- name: install koji builder rpmautospec plugin
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
name: koji-builder-plugin-rpmautospec
|
||||
state: present
|
||||
with_items:
|
||||
- koji-builder-plugin-rpmautospec
|
||||
when: env != 'staging'
|
||||
tags:
|
||||
- packages
|
||||
- koji_builder
|
||||
- rpmautospec
|
||||
|
||||
- name: remove koji builder rpmautospec plugin
|
||||
package:
|
||||
name: koji-builder-plugin-rpmautospec
|
||||
state: absent
|
||||
when: env == 'staging'
|
||||
tags:
|
||||
- packages
|
||||
- koji_builder
|
||||
|
|
|
@ -27,3 +27,11 @@ config_opts['use_bootstrap_image'] = False
|
|||
config_opts["dnf5_avoid_opts"] = {
|
||||
"group": ["--allowerasing"],
|
||||
}
|
||||
|
||||
{% if env == "staging" %}
|
||||
config_opts['plugin_conf']['rpmautospec_enable'] = True
|
||||
config_opts['plugin_conf']['rpmautospec_opts'] = {
|
||||
'requires': ['rpmautospec'],
|
||||
'cmd_base': ['/usr/bin/rpmautospec', 'process-distgit'],
|
||||
}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue